diff options
Diffstat (limited to 'lib/glider/formats.py')
-rw-r--r-- | lib/glider/formats.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/glider/formats.py b/lib/glider/formats.py index 4659e10..6ccd466 100644 --- a/lib/glider/formats.py +++ b/lib/glider/formats.py @@ -35,6 +35,7 @@ def rolePathMatches(rolePath, path): try: regex = _rolePathCache[rolePath] except KeyError: + rolePath = re.sub(r'/+', '/', rolePath) rolePath = re.escape(rolePath).replace(r'\*\*', r'.*') rolePath = rolePath.replace(r'\*', r'[^/]*') rolePath += "$" |