Commit 2b8114bd authored by Michal Čihař's avatar Michal Čihař

Simplify regexp

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 634d7dba
......@@ -102,7 +102,7 @@ class Command(BaseCommand):
'''
if self._mask_regexp is None:
match = fnmatch.translate(self.filemask)
match = match.replace('.*.*', '(?P<name>.*.*)')
match = match.replace('.*.*', '(?P<name>.*)')
self._mask_regexp = re.compile(match)
return self._mask_regexp
......
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