From 97f3e306b9370f4057d07fee87e10b28fdedbaa4 Mon Sep 17 00:00:00 2001 From: iBug Date: Mon, 27 Jul 2020 03:43:36 +0800 Subject: [PATCH] Stupid mistakes --- build.py | 2 +- code.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.py b/build.py index 82f3fc8..802d7a3 100755 --- a/build.py +++ b/build.py @@ -61,7 +61,7 @@ def main(): f.write(data) f.write("\n") f.write(gfwlist_stub) - with open(os.path.join(OUT_DIR, filename), "w") as f: + with open(os.path.join(OUT_DIR, filename_gfwlist), "w") as f: f.write(code) f.write(data) f.write("\n") diff --git a/code.js b/code.js index 36c4a62..3ca92f6 100644 --- a/code.js +++ b/code.js @@ -28,7 +28,7 @@ function belongsToSubnet(host, list) { function hasMatchedPattern(text, patterns) { for (var i = 0; i < patterns.length; i++) { - if (shExpMatch(text, patterns[i]) + if (shExpMatch(text, patterns[i])) return true; } return false;