regex-escape search terms
This commit is contained in:
parent
f07ead5008
commit
1c038a030d
1 changed files with 1 additions and 1 deletions
|
|
@ -322,7 +322,7 @@ class ObjectDBManager(TypedObjectManager):
|
||||||
)
|
)
|
||||||
|
|
||||||
# convert search term to partial-match regex
|
# convert search term to partial-match regex
|
||||||
search_regex = r".* ".join(word for word in ostring.split())
|
search_regex = r".* ".join(re.escape(word) for word in ostring.split())
|
||||||
|
|
||||||
# do the fuzzy search and return whatever it matches
|
# do the fuzzy search and return whatever it matches
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue