glob *s should probably be non-greedy

pull/56/head
Matthew Hodgson 2015-02-08 02:37:35 +00:00
parent c2afc2ad90
commit ecb0f78063
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ class Pusher(object):
@staticmethod
def _glob_to_regexp(glob):
r = re.escape(glob)
r = re.sub(r'\\\*', r'.*', r)
r = re.sub(r'\\\*', r'.*?', r)
r = re.sub(r'\\\?', r'.', r)
# handle [abc], [a-z] and [!a-z] style ranges.