(image-type-regexps): Use `\`' instead of `^' in
authorGerd Moellmann <gerd@gnu.org>
Tue, 7 Aug 2001 08:03:42 +0000 (08:03 +0000)
committerGerd Moellmann <gerd@gnu.org>
Tue, 7 Aug 2001 08:03:42 +0000 (08:03 +0000)
most regular expressions.

lisp/ChangeLog
lisp/image.el

index b9557b8..8d99f23 100644 (file)
@@ -1,3 +1,8 @@
+2001-08-07  Gerd Moellmann  <gerd@gnu.org>
+
+       * image.el (image-type-regexps): Use `\`' instead of `^' in
+       most regular expressions.
+
 2001-08-06  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
 
        * play/animate.el: re-insert a reference to re-inserted function.
index 381f02e..14b9da5 100644 (file)
 
 
 (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.")