Merge pull request #1 from RickieL/RickieL-patch-1

fixed rewrite regex Curly Bracket case.
pull/6/head
RickieL 6 years ago committed by GitHub
commit 21012dab46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -66,6 +66,8 @@ def clean_lines(orig_lines) -> list:
else:
if line.startswith("#"):
cleaned_lines.append(strip_variable_template_tags(line))
elif line.startswith("rewrite"):
cleaned_lines.append(strip_variable_template_tags(line))
else:
cleaned_lines.extend(
[strip_variable_template_tags(l).strip() for l in re.split(r"([{}])", line) if l != ""])

Loading…
Cancel
Save