From 86f16c537e06c6ba4a8b250f25dcce9f049023ff Mon Sep 17 00:00:00 2001 From: Claire Date: Mon, 8 Mar 2021 13:46:57 +0100 Subject: [PATCH] Remove unneeded spaces surrounding tsquery term --- app/models/account.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/models/account.rb b/app/models/account.rb index 344926e621..04c9a6d9da 100644 --- a/app/models/account.rb +++ b/app/models/account.rb @@ -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