summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2019-09-16 20:31:12 +0200
committerBastien Nocera <hadess@hadess.net>2019-09-16 20:31:12 +0200
commitdb6efe84d3137df09e9849b163d0c5770ba1794a (patch)
tree99cf941a2a21050ebb7ef85a200d5c88101d3686
parentfe8b8a9d97ee2218aa80dfc8000a961b82871299 (diff)
downloadshared-mime-info-db6efe84d3137df09e9849b163d0c5770ba1794a.tar.gz
Lower the priority of "<title" for HTML files
Those are also found in SVG files.
-rw-r--r--freedesktop.org.xml.in4
-rw-r--r--tests/list1
-rw-r--r--tests/network-symbolic.svg1
3 files changed, 4 insertions, 2 deletions
diff --git a/freedesktop.org.xml.in b/freedesktop.org.xml.in
index bee7122d..5d45e7b3 100644
--- a/freedesktop.org.xml.in
+++ b/freedesktop.org.xml.in
@@ -6006,8 +6006,6 @@ command to generate the output files.
<match type="string" value="&lt;!DOCTYPE html" offset="0:256"/>
<match type="string" value="&lt;HEAD" offset="0:256"/>
<match type="string" value="&lt;head" offset="0:256"/>
- <match type="string" value="&lt;TITLE" offset="0:256"/>
- <match type="string" value="&lt;title" offset="0:256"/>
<match type="string" value="&lt;HTML" offset="0:256"/>
<match type="string" value="&lt;html" offset="0:256"/>
<match type="string" value="&lt;SCRIPT" offset="0:256"/>
@@ -6020,6 +6018,8 @@ command to generate the output files.
</magic>
<magic priority="40">
<match type="string" value="&lt;!--" offset="0"/>
+ <match type="string" value="&lt;TITLE" offset="0:256"/>
+ <match type="string" value="&lt;title" offset="0:256"/>
</magic>
<glob pattern="*.html" weight="80"/>
<glob pattern="*.htm" weight="80"/>
diff --git a/tests/list b/tests/list
index 1cc8929c..d89038bc 100644
--- a/tests/list
+++ b/tests/list
@@ -110,6 +110,7 @@ dnd-counter.svg image/svg+xml
folder.svg image/svg+xml
# Copied from https://gitlab.freedesktop.org/xdg/shared-mime-info/issues/116#note_225851
terminal-app.svg image/svg+xml
+network-symbolic.svg image/svg+xml
# Documents
ooo-6.0.doc application/msword
diff --git a/tests/network-symbolic.svg b/tests/network-symbolic.svg
new file mode 100644
index 00000000..04834170
--- /dev/null
+++ b/tests/network-symbolic.svg
@@ -0,0 +1 @@
+<?xml version="1.0" ?><svg height="16px" version="1.1" viewBox="0 0 16 16" width="16px" xmlns="http://www.w3.org/2000/svg" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns" xmlns:xlink="http://www.w3.org/1999/xlink"><title/><defs/><g fill="none" fill-rule="evenodd" id="Icons with numbers" stroke="none" stroke-width="1"><g fill="#000000" id="Group" transform="translate(-576.000000, -288.000000)"><path d="M576,298 C576,296.651721 576.895887,295.507545 578.127761,295.131093 C578.500314,293.897932 579.645295,293 581,293 C581.174013,293 581.344566,293.014816 581.510466,293.043254 C582.195719,291.823839 583.50165,291 585,291 C587.209139,291 589,292.790861 589,295 C590.668415,295.005076 592,296.346276 592,298 C592,299.653483 590.652611,301 588.990522,301 L579.009478,301 C577.336631,301 576,299.656854 576,298 Z M576,298" id="Rectangle 169"/></g></g></svg> \ No newline at end of file