iron-cms 0.14.1 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/models/iron/search/query.rb +6 -1
- data/lib/iron/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f6e038165d19792d4996c7ec0dba52cf3050c9047819f0857274a9d3adb5f190
|
|
4
|
+
data.tar.gz: 1d6624acb03d0789ed4f7f984b3578237474a179610b4ab20632e89fda7a2e63
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 91535cb2aa2fa21cdfe6b819b231ea70a447ec88145b0123564f84fa47c3e3c1ad4214a446ca59c4f1423496d644c6fb5207e292cc7d686f3bc5ef37ffbf37e2
|
|
7
|
+
data.tar.gz: 63802328dc8911c7109a661daaf8742461459b3e0b929e73163736c0f86861b7cab9115f3ccb85802b20d0e6983baafc7d5c3a782b2408bf91ea50cffe83a010
|
|
@@ -15,7 +15,8 @@ module Iron
|
|
|
15
15
|
result = strip_special_characters(raw)
|
|
16
16
|
return nil if result.blank?
|
|
17
17
|
result = remove_unbalanced_quotes(result)
|
|
18
|
-
neutralize_operators(result)
|
|
18
|
+
result = neutralize_operators(result)
|
|
19
|
+
add_prefix_wildcards(result)
|
|
19
20
|
end
|
|
20
21
|
|
|
21
22
|
def strip_special_characters(text)
|
|
@@ -29,5 +30,9 @@ module Iron
|
|
|
29
30
|
def neutralize_operators(text)
|
|
30
31
|
text.downcase
|
|
31
32
|
end
|
|
33
|
+
|
|
34
|
+
def add_prefix_wildcards(text)
|
|
35
|
+
text.gsub(/("(?:[^"]*)"|\w+)/, '\1*')
|
|
36
|
+
end
|
|
32
37
|
end
|
|
33
38
|
end
|
data/lib/iron/version.rb
CHANGED