summaryrefslogtreecommitdiff
path: root/lib/glider/formats.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/glider/formats.py')
-rw-r--r--lib/glider/formats.py1
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 += "$"