Commit af9fe044 authored by Chris Lamb's avatar Chris Lamb 💬

Loosen matching of file(1)'s output to ensure we correctly also match TTF files under file 5.32.

parent 97f074f7
......@@ -36,7 +36,7 @@ class Showttf(Command):
class TtfFile(File):
FILE_TYPE_RE = re.compile(r'^(TrueType|OpenType) font data$')
FILE_TYPE_RE = re.compile(r'^(TrueType|OpenType) font data', re.IGNORECASE)
def compare_details(self, other, source=None):
return [Difference.from_command(Showttf, self.path, other.path)]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment