changeset 38709:00a56d6da660

(image-type-regexps): Use `\`' instead of `^' in most regular expressions.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 07 Aug 2001 08:03:10 +0000
parents 456acc0ad1ee
children c12dcf78cf71
files lisp/image.el
diffstat 1 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/image.el	Mon Aug 06 21:29:16 2001 +0000
+++ b/lisp/image.el	Tue Aug 07 08:03:10 2001 +0000
@@ -31,14 +31,14 @@
 
 
 (defconst image-type-regexps
-  '(("^/\\*.*XPM.\\*/" . xpm)
-    ("^P[1-6]" . pbm)
-    ("^GIF8" . gif)
+  '(("\\`/\\*.*XPM.\\*/" . xpm)
+    ("\\`P[1-6]" . pbm)
+    ("\\`GIF8" . gif)
     ("JFIF" . jpeg)
-    ("^\211PNG\r\n" . png)
-    ("^#define" . xbm)
-    ("^\\(MM\0\\*\\)\\|\\(II\\*\0\\)" . tiff)
-    ("^%!PS" . postscript))
+    ("\\`\211PNG\r\n" . png)
+    ("\\`#define" . xbm)
+    ("\\`\\(MM\0\\*\\)\\|\\(II\\*\0\\)" . tiff)
+    ("\\`%!PS" . postscript))
   "Alist of (REGEXP . IMAGE-TYPE) pairs used to auto-detect image types.
 When the first bytes of an image file match REGEXP, it is assumed to
 be of image type IMAGE-TYPE.")