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