mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-01-27 17:37:02 -05:00
Disable auto search for prefixes in event search
This commit is contained in:
parent
a285fe05fd
commit
66dcbf47a3
@ -722,7 +722,7 @@ def _parse_query(database_engine, search_term):
|
||||
results = re.findall(r"([\w\-]+)", search_term, re.UNICODE)
|
||||
|
||||
if isinstance(database_engine, PostgresEngine):
|
||||
return " & ".join(result + ":*" for result in results)
|
||||
return " & ".join(result for result in results)
|
||||
elif isinstance(database_engine, Sqlite3Engine):
|
||||
return " & ".join(result + "*" for result in results)
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user