fix search regex

This commit is contained in:
Cal 2024-05-15 17:24:42 -06:00
parent 5f699ce312
commit d7d6b311ec

View file

@ -322,7 +322,7 @@ class ObjectDBManager(TypedObjectManager):
)
# 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
return (