diff --git a/libmat2/images.py b/libmat2/images.py index fe700d2..0b85cde 100644 --- a/libmat2/images.py +++ b/libmat2/images.py @@ -32,7 +32,7 @@ class __ImageParser(abstract.AbstractParser): of this. """ fun = lambda f: subprocess.check_output(['/usr/bin/exiftool', '-json', f]) - if not re.match('^[a-z0-9]', self.filename): + if re.search('^[a-z0-9]', self.filename) is None: out = self.__handle_problematic_filename(self.filename, fun) else: out = fun(self.filename)