mihari 4.5.2 → 4.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mihari/analyzers/rule.rb +6 -3
- data/lib/mihari/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: 02c4e60250ffc8e40e4d0c08fd3721101ab943abdfeb1f73ec267cc345bc0dd2
|
4
|
+
data.tar.gz: 5e65063ca7b9cc8c5b9c6d137abe6820abb6b179c3fb8582d1381d583eb27280
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 142cc9ec86582d37e7e5bd472f1a4f085582441e2204d406fa6ff9d2e94331cbc27513a410c00174950750e066ff9c53b100bd4cfe23039e4cb2be7d8f69ed33
|
7
|
+
data.tar.gz: 49a02b02e298b94d8d847d74ea3389a3e873e72e17fdb93d1e5392992be05db73b37f6cea05ead35b04573400b6956e5b34d323008efb679fba60dcf53d6b372
|
@@ -127,9 +127,12 @@ module Mihari
|
|
127
127
|
# @return [Boolean]
|
128
128
|
#
|
129
129
|
def disallowed_data_value?(value)
|
130
|
-
normalized_disallowed_data_values.
|
131
|
-
|
132
|
-
|
130
|
+
return true if normalized_disallowed_data_values.include?(value)
|
131
|
+
|
132
|
+
normalized_disallowed_data_values.select do |disallowed_data_value|
|
133
|
+
disallowed_data_value.is_a?(Regexp)
|
134
|
+
end.any? do |disallowed_data_value|
|
135
|
+
disallowed_data_value.match?(value)
|
133
136
|
end
|
134
137
|
end
|
135
138
|
|
data/lib/mihari/version.rb
CHANGED