smart_search 0.0.76 → 0.0.77
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/smart_search.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a39a3652a1261007678c58399fd5a8ae0e342dcc
|
4
|
+
data.tar.gz: c722ece923f174235c1d7022e17e763d0f83fd91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac5c72d4b42022bb5b04dd9ce8441009f0491172415fbe9414d9ab24ab03d85a45764e7d501f94358a8b98f5274d362a12e1c8ab4520275c316316541dffdfb4
|
7
|
+
data.tar.gz: 9c21b39bb8ede89b43c835e41ed065a8fb93df5f84c2024fda18e6efd8cea1d7a7fb1b6a4ab10310ef3fd22bedd8b8e1d491a7d6d673b71c407e9d9e93bcf22d
|
data/lib/smart_search.rb
CHANGED
@@ -72,7 +72,7 @@ module SmartSearch
|
|
72
72
|
self.connection.execute("INSERT INTO `#{::SmartSearchHistory.table_name}` (`query`) VALUES ('#{tags.gsub(/[^a-zA-ZäöüÖÄÜß\ ]/, '')}');")
|
73
73
|
end
|
74
74
|
|
75
|
-
tags = tags.gsub(/[\(\)\[\]\'\"
|
75
|
+
tags = tags.gsub(/[\(\)\[\]\'\"\*\%\|]/, '').split(/[\ -]/).select {|t| !t.blank?}
|
76
76
|
|
77
77
|
# Fallback for Empty String
|
78
78
|
tags << "#" if tags.empty?
|