mongoid_text_search 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -18,7 +18,7 @@ module Mongoid
|
|
18
18
|
for keyword in keywords
|
19
19
|
if keyword.is_a?(String)
|
20
20
|
clean_keyword = keyword.downcase
|
21
|
-
clean_keyword
|
21
|
+
clean_keyword.strip!
|
22
22
|
clean_keyword.gsub!(StripPunctuationRegex, PunctuationReplacement)
|
23
23
|
if clean_keyword.size > 2 && !IgnoredWords.include?(clean_keyword) && !clean_keywords.include?(clean_keyword)
|
24
24
|
clean_keywords << clean_keyword
|