Fix new Rubocop warnings
This commit is contained in:
parent
f41c1f9ff4
commit
98be7e2076
4 changed files with 16 additions and 9 deletions
|
@ -62,7 +62,7 @@ class DossierSearchService
|
|||
|
||||
def self.to_tsquery(search_terms)
|
||||
(search_terms || "")
|
||||
.gsub(/['?\\:&|!<>\(\)]/, "") # drop disallowed characters
|
||||
.gsub(/['?\\:&|!<>()]/, "") # drop disallowed characters
|
||||
.strip
|
||||
.split(/\s+/) # split words
|
||||
.map { |x| "#{x}:*" } # enable prefix matching
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue