#713014 a2ps: 50a2ps.el auto-mode-alist regexp \\'

Package:
a2ps
Source:
a2ps
Description:
GNU a2ps - 'Anything to PostScript' converter and pretty-printer
Submitter:
Kevin Ryde
Date:
2014-06-30 22:11:01 UTC
Severity:
minor
#713014#5
Date:
2013-06-21 21:19:58 UTC
From:
To:
50a2ps.el contains

    ".*\\.a2ps$"

Usually auto-mode-alist regexps should be \\' rather than $ so for
instance

    "\\.a2ps\\'"

This matches only end-of-string, not a newline.  Of course filenames
shouldn't normally contain newlines, but end-of-string is what's wanted.

I believe there's no need to match the initial part of the name with
".*".