mirror of
https://github.com/element-hq/synapse
synced 2024-09-10 20:05:16 +00:00
glob *s should probably be non-greedy
This commit is contained in:
parent
c2afc2ad90
commit
ecb0f78063
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ class Pusher(object):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _glob_to_regexp(glob):
|
def _glob_to_regexp(glob):
|
||||||
r = re.escape(glob)
|
r = re.escape(glob)
|
||||||
r = re.sub(r'\\\*', r'.*', r)
|
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.
|
# handle [abc], [a-z] and [!a-z] style ranges.
|
||||||
|
|
Loading…
Reference in a new issue