Skip to content

Commit 86f16c5

Browse files
committed
Remove unneeded spaces surrounding tsquery term
1 parent 70c790c commit 86f16c5

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

app/models/account.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -530,9 +530,7 @@ def generate_query_for_search(unsanitized_terms)
530530
terms = unsanitized_terms.gsub(DISALLOWED_TSQUERY_CHARACTERS, ' ')
531531

532532
# The final ":*" is for prefix search.
533-
# Not sure what surrounding spaces are for, but they were there in the
534-
# original code.
535-
"' #{terms} ':*"
533+
"'#{terms}':*"
536534
end
537535
end
538536

0 commit comments

Comments
 (0)