Fix regexp for recognizing PBM images
* lisp/image.el (image-type-header-regexps): Don't use [:space:], as its meaning depends on the current buffer's syntax tables. (Bug#65496)
This commit is contained in:
parent
9e9f61866e
commit
d17c5adc05
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@
|
|||
(defconst image-type-header-regexps
|
||||
`(("\\`/[\t\n\r ]*\\*.*XPM.\\*/" . xpm)
|
||||
("\\`P[1-6]\\(?:\
|
||||
\\(?:\\(?:#[^\r\n]*[\r\n]\\)*[[:space:]]\\)+\
|
||||
\\(?:\\(?:#[^\r\n]*[\r\n]\\)*[ \t\r\n]\\)+\
|
||||
\\(?:\\(?:#[^\r\n]*[\r\n]\\)*[0-9]\\)+\
|
||||
\\)\\{2\\}" . pbm)
|
||||
("\\`GIF8[79]a" . gif)
|
||||
|
|
Loading…
Add table
Reference in a new issue