fix search regex
This commit is contained in:
parent
5f699ce312
commit
d7d6b311ec
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(re.escape(word) for word in ostring.split())
|
search_regex = r".* ".join(re.escape(word) for word in ostring.split()) + r'.*'
|
||||||
|
|
||||||
# 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