Detect SVG images missing the <?xml/> tag.
* If the file starts with "<svg", it's likely an SVG image. * Fixes another misdetected file in WebKit testsuite.
This commit is contained in:
parent
2cecbed4f7
commit
10c7810268
@ -6,7 +6,7 @@ resource(1, "META:TYPE") "image/svg+xml";
|
||||
resource(2, "META:S:DESC") #'MSDC' "SVG image";
|
||||
|
||||
resource(3, "META:SNIFF_RULE") #'CSTR' array {
|
||||
"0.60 (\"<?xml\") [0:511] ( -i \"<SVG\" | \"<!DOCTYPE SVG\" )"
|
||||
"0.60 (\"<?xml\" | \"<svg\") [0:511] ( -i \"<SVG\" | \"<!DOCTYPE SVG\" )"
|
||||
};
|
||||
|
||||
resource(4, "META:PREF_APP") #'MSIG' "application/x-vnd.Haiku-WebPositive";
|
||||
|
Loading…
Reference in New Issue
Block a user