diff options
author | Bastien Nocera <hadess@hadess.net> | 2019-09-11 19:47:06 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2019-09-11 19:47:06 +0200 |
commit | 02eb9307d7ef820e870db1cbfc64f4eca1b5fd45 (patch) | |
tree | b9b0e9da307cd40e5c701b97dc1eb38eeebb3490 | |
parent | 25987df9a845cac3231c70e43637638fa658174d (diff) | |
download | shared-mime-info-02eb9307d7ef820e870db1cbfc64f4eca1b5fd45.tar.gz |
Raise SVG match priority to be above XML's
We lowered SVG's magic priority so that files would be first and
foremost detected as HTML, then as SVG. But SVG files are also XML, and
XML files had the same priority as SVGs, leading to SVG files being
detected as simply "XML".
Raise SVG's magic priority to be above XML, but below HTML's.
Fortunately we have a test now...
Fixes: 84563c62ab30190f8d3d25f8763556068f02d4a8
-rw-r--r-- | freedesktop.org.xml.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/freedesktop.org.xml.in b/freedesktop.org.xml.in index 8df11cd9..0315e7f5 100644 --- a/freedesktop.org.xml.in +++ b/freedesktop.org.xml.in @@ -4918,7 +4918,7 @@ command to generate the output files. <magic priority="80"> <match type="string" value="<!DOCTYPE svg" offset="0:256"/> </magic> - <magic priority="40"> + <magic priority="45"> <match type="string" value="<svg" offset="0:256"/> </magic> <glob pattern="*.svg"/> |