Commit cb1aa1b6 authored by Mattia Rizzolo's avatar Mattia Rizzolo

comparators/icc: rename RE_FILE_EXTENSION to RE_FILE_TYPE, as that's what the RE is looking at

parent 483ec035
......@@ -33,11 +33,11 @@ class Iccdump(Command):
class IccFile(File):
RE_FILE_EXTENSION = re.compile(r'\bColorSync (ICC|color) [Pp]rofile')
RE_FILE_TYPE = re.compile(r'\bColorSync (ICC|color) [Pp]rofile')
@staticmethod
def recognizes(file):
return IccFile.RE_FILE_EXTENSION.search(file.magic_file_type)
return IccFile.RE_FILE_TYPE.search(file.magic_file_type)
def compare_details(self, other, source=None):
return [Difference.from_command(Iccdump, 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