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: else:
if line.startswith("#"): if line.startswith("#"):
cleaned_lines.append(strip_variable_template_tags(line)) cleaned_lines.append(strip_variable_template_tags(line))
elif line.startswith("rewrite"):
cleaned_lines.append(strip_variable_template_tags(line))
else: else:
cleaned_lines.extend( cleaned_lines.extend(
[strip_variable_template_tags(l).strip() for l in re.split(r"([{}])", line) if l != ""]) [strip_variable_template_tags(l).strip() for l in re.split(r"([{}])", line) if l != ""])

Loading…
Cancel
Save