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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/smart_search.rb +1 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9e50cd7153527e017184f7410525c506b449456e
4
- data.tar.gz: 8daa5f631fe023f5a4a5745fd94aade9ed129e8e
3
+ metadata.gz: a39a3652a1261007678c58399fd5a8ae0e342dcc
4
+ data.tar.gz: c722ece923f174235c1d7022e17e763d0f83fd91
5
5
  SHA512:
6
- metadata.gz: b0b4c41aca0314080ec2c840f49528625e6faa0c550528e16cf5e79fed430649e999e2e1b3cf90e52d44a23a9561b74b2c8372f28a28a563ed8956263db8f2c3
7
- data.tar.gz: d97d48233d8bf3385d53530a4d924a7f42550c795b636a03177ed1ca402cf4c86d89c5e72589a10828aa7d905fa6ee2f4641c1155d6dcd693d0b7c6f5ba9ef9b
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(/[\(\)\[\]\'\"\*\%]/, '').split(/[\ -]/).select {|t| !t.blank?}
75
+ tags = tags.gsub(/[\(\)\[\]\'\"\*\%\|]/, '').split(/[\ -]/).select {|t| !t.blank?}
76
76
 
77
77
  # Fallback for Empty String
78
78
  tags << "#" if tags.empty?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smart_search
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.76
4
+ version: 0.0.77
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Eck