Skip to content
Snippets Groups Projects
Commit 7db08c9c authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

BF: Escape period characters in regexp so they are interpreted as literal

parent 6a2d81a3
No related branches found
No related tags found
No related merge requests found
......@@ -158,6 +158,7 @@ def extract_variables(template, filename, known_vars=None):
))
while '//' in sub_re:
sub_re = sub_re.replace('//', '/')
sub_re = sub_re.replace('.', '\.')
if re.match(sub_re, filename) is None:
continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment