Commit 74008276 authored by Michal Čihař's avatar Michal Čihař

Use only first * for finding language code (issue #27)

parent db4d68c5
......@@ -374,7 +374,7 @@ class SubProject(models.Model):
'''
Parses language code from path.
'''
parts = self.filemask.split('*')
parts = self.filemask.split('*', 1)
return path[len(parts[0]):-len(parts[1])]
def save(self, *args, **kwargs):
......
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