the link between description and diverge worksgit add -A

This commit is contained in:
Cristina Cochior 2019-05-05 16:28:53 +02:00
parent 9a1bec75f6
commit b56df181d7
9 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ for path, subdirs, files in os.walk(path):
textfile = f.read()
for word in wordlist_dict:
word = re.escape(word)
textfile = re.sub(r"(?<!<)(?<!</)(?<!ge\?)\b(%s)\b" %word, r"<a href='/diverge?search='\1'>\1</a>", textfile)
textfile = re.sub(r"(?<!<)(?<!</)(?<!ge\?)\b(%s)\b" %word, r"<a href='/diverge?search=\1'>\1</a>", textfile)
f.truncate(0)
f.write(textfile)
f.truncate()

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.