mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 12:56:30 +01:00
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
|
||||
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 (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue