the link between description and diverge worksgit add -A
This commit is contained in:
parent
9a1bec75f6
commit
b56df181d7
@ -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.
Loading…
Reference in New Issue
Block a user