Commit dbd61c55 authored by Mikaël Salson's avatar Mikaël Salson
Browse files Allow jokers

We must allow anything *before* the alternative, not after (as in the else case)
parent 2cd69443
......@@ -168,7 +168,7 @@ def should_pattern_to_regex(p):
if len(r) > 1 and r[1][0] == '|':
# We have an alternative
regex_pattern = '('+''.join(r)+').*'
regex_pattern = '.*('+''.join(r)+')'
regex_pattern = '.*'.join(r)
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