mirror of
https://bitbucket.org/anticensority/antizapret-pac-generator-light.git
synced 2024-11-22 05:06:04 +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