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;