Remove unneeded spaces surrounding tsquery term

This commit is contained in:
Claire 2021-03-08 13:46:57 +01:00
parent 70c790cc24
commit 86f16c537e
1 changed files with 1 additions and 3 deletions

View File

@ -530,9 +530,7 @@ class Account < ApplicationRecord
terms = unsanitized_terms.gsub(DISALLOWED_TSQUERY_CHARACTERS, ' ')
# The final ":*" is for prefix search.
# Not sure what surrounding spaces are for, but they were there in the
# original code.
"' #{terms} ':*"
"'#{terms}':*"
end
end