From aa29beda049f1fd8558fdfb0dbe0384e0a0cd63e Mon Sep 17 00:00:00 2001 From: ValdikSS Date: Sun, 11 Jun 2023 16:07:16 +0300 Subject: [PATCH] Bugfix: quote dot in topsequence awk regex generation --- scripts/topsequences.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/topsequences.py b/scripts/topsequences.py index 1548ef0..510eaea 100755 --- a/scripts/topsequences.py +++ b/scripts/topsequences.py @@ -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: