From: Reuben Thomas Date: Wed, 10 Sep 2008 21:30:28 +0000 (+0000) Subject: Comment out the graphviz patterns, as they match far too many files. X-Git-Tag: FILE5_05~334 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7edfd63e4223ac447cbc2d66e37471ea8be0fc17;p=file Comment out the graphviz patterns, as they match far too many files. Explanation given. I suggest mailing the graphviz people to ask if anyone wants to sort them out. --- diff --git a/magic/Magdir/graphviz b/magic/Magdir/graphviz index cf47f4e2..b580713d 100644 --- a/magic/Magdir/graphviz +++ b/magic/Magdir/graphviz @@ -1,7 +1,10 @@ - #------------------------------------------------------------------------------ # graphviz: file(1) magic for http://www.graphviz.org/ -0 regex/100 [\r\n\t\ ]*graph[\r\n\t\ ]*.*\\{ graphviz graph text -!:mime text/vnd.graphviz -0 regex/100 [\r\n\t\ ]*digraph[\r\n\t\ ]*.*\\{ graphviz digraph text -!:mime text/vnd.graphviz + +# FIXME: These patterns match too generally. For example, the first +# line matches a LaTeX file containing the word "graph" (with a { +# following later) and the second line matches this file. +#0 regex/100 [\r\n\t\ ]*graph[\r\n\t\ ]*.*\\{ graphviz graph text +#!:mime text/vnd.graphviz +#0 regex/100 [\r\n\t\ ]*digraph[\r\n\t\ ]*.*\\{ graphviz digraph text +#!:mime text/vnd.graphviz