fix search

This commit is contained in:
Pete Matsyburka
2025-06-21 22:17:54 +03:00
parent 0e11d2a581
commit 47b235dc5f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ module Submitters
end
[sql, number, weight, number.length > 1 ? number.delete_prefix('0') : number, weight]
elsif keyword.match?(/[^\p{L}\d&@._\-+]/)
elsif keyword.match?(/[^\p{L}\d&@._\-]/)
terms = TextUtils.transliterate(keyword.downcase).split(/\b/).map(&:squish).compact_blank.uniq
if terms.size > 1