More regex improvements
This commit is contained in:
parent
3a0b434e42
commit
138e21a94c
2 changed files with 9 additions and 15 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue