Don't reject PBM header whitespace unnecessarily
* lisp/image.el (image-type-header-regexps): Allow two or more CRs or LFs in initial whitespace sequences. See: http://netpbm.sourceforge.net/doc/pbm.html
This commit is contained in:
parent
3205b12a78
commit
613db8d35c
1 changed files with 2 additions and 2 deletions
|
@ -34,8 +34,8 @@
|
|||
(defconst image-type-header-regexps
|
||||
`(("\\`/[\t\n\r ]*\\*.*XPM.\\*/" . xpm)
|
||||
("\\`P[1-6]\\(?:\
|
||||
\\(?:\\(?:#[^\r\n]*[\r\n]\\)?[[:space:]]\\)+\
|
||||
\\(?:\\(?:#[^\r\n]*[\r\n]\\)?[0-9]\\)+\
|
||||
\\(?:\\(?:#[^\r\n]*[\r\n]\\)*[[:space:]]\\)+\
|
||||
\\(?:\\(?:#[^\r\n]*[\r\n]\\)*[0-9]\\)+\
|
||||
\\)\\{2\\}" . pbm)
|
||||
("\\`GIF8[79]a" . gif)
|
||||
("\\`\x89PNG\r\n\x1a\n" . png)
|
||||
|
|
Loading…
Add table
Reference in a new issue