Stupid mistakes

This commit is contained in:
iBug 2020-07-27 03:43:36 +08:00
parent cf08e0d840
commit 97f3e306b9
2 changed files with 2 additions and 2 deletions

View File

@ -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")

View File

@ -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;