Commit 7db08c9c authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

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

parent 6a2d81a3
......@@ -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
......
Supports Markdown
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