More regex improvements

This commit is contained in:
Griatch 2024-03-17 09:39:57 +01:00
parent 3a0b434e42
commit 138e21a94c
2 changed files with 9 additions and 15 deletions

View file

@ -441,7 +441,7 @@ def parse_sdescs_and_recogs(
word_list = []
bestmatches = []
# preserve punctuation when splitting
tail = re.split("(\W)", tail)
tail = re.split(r"(\W)", tail)
iend = 0
for i, item in enumerate(tail):
# don't add non-word characters to the search query