From ca3b92d6f91269c9b57161d9473508a40fa7c816 Mon Sep 17 00:00:00 2001 From: iam-py-test <84232764+iam-py-test@users.noreply.github.com> Date: Sat, 6 Nov 2021 16:21:10 -0400 Subject: [PATCH] That went well... --- scripts/compile.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/compile.py b/scripts/compile.py index 0ea9b0b53..87cb0f331 100644 --- a/scripts/compile.py +++ b/scripts/compile.py @@ -98,9 +98,9 @@ def print_rules( ) -> None: for rule in rules: if is_regex(rule): - print(regex_fromat.format(rule, url_pattern)) + endrules.write(regex_fromat.format(rule, url_pattern) + "\n") else: - print(plain_format.format(rule, url_pattern)) + endrules.write(plain_format.format(rule, url_pattern) + "\n") def getrules(): import requests @@ -149,11 +149,11 @@ def main() -> int: for exception in exceptions: kind, exception = normalize_exception(exception.replace("\\\\", "\\")) if kind == "regex": - endrules.write("@@/{0}/$removeparam".format(exception)) + endrules.write("@@/{0}/$removeparam".format(exception) + "\n") elif kind == "path": - endrules.write("@@{0}$removeparam".format(exception)) + endrules.write("@@{0}$removeparam".format(exception) + "\n") elif kind == "domain": - endrules.write("@@$removeparam,domain={0}".format(exception)) + endrules.write("@@$removeparam,domain={0}".format(exception) + "\n") else: raise ValueError