Fix detection of WebP images by their signature
* lisp/image.el (image-type-header-regexps): The 4 characters between "RIFF" and "WEBP" in WebP images can also be newlines. (Bug#62790)
This commit is contained in:
parent
43290391ce
commit
17d803d0a7
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ static \\(unsigned \\)?char \\1_bits" . xbm)
|
|||
("\\`\\(?:MM\0\\*\\|II\\*\0\\)" . tiff)
|
||||
("\\`[\t\n\r ]*%!PS" . postscript)
|
||||
("\\`\xff\xd8" . jpeg) ; used to be (image-jpeg-p . jpeg)
|
||||
("\\`RIFF....WEBPVP8" . webp)
|
||||
("\\`RIFF[^z-a][^z-a][^z-a][^z-a]WEBPVP8" . webp)
|
||||
(,(let* ((incomment-re "\\(?:[^-]\\|-[^-]\\)")
|
||||
(comment-re (concat "\\(?:!--" incomment-re "*-->[ \t\r\n]*<\\)")))
|
||||
(concat "\\(?:<\\?xml[ \t\r\n]+[^>]*>\\)?[ \t\r\n]*<"
|
||||
|
|
Loading…
Add table
Reference in a new issue