mirror of
https://bitbucket.org/anticensority/antizapret-pac-generator-light.git
synced 2024-11-21 20:56:03 +03:00
Bugfix: quote dot in topsequence awk regex generation
This commit is contained in:
parent
c73e0d901f
commit
aa29beda04
@ -47,7 +47,7 @@ finallist = list(patternhit)[-1 * len(wordreplace):]
|
||||
with open(sys.argv[2], "w") as awkfile:
|
||||
print("{", file=awkfile)
|
||||
for i, w in enumerate(finallist):
|
||||
print('gsub(/{}/, "{}", domainname)'.format(w, wordreplace[i]), file=awkfile)
|
||||
print('gsub(/{}/, "{}", domainname)'.format(w.replace(".", "\\."), wordreplace[i]), file=awkfile)
|
||||
print("}", file=awkfile)
|
||||
|
||||
with open(sys.argv[3], "w") as pacfile:
|
||||
|
Loading…
Reference in New Issue
Block a user