credit_card_sanitizer 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/credit_card_sanitizer.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: fd08761509033412d057bf65a075825a398d2913
|
4
|
+
data.tar.gz: 9983bd203866b79d50d20685c57feb4a7e45d9da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c672847f24db31097db03344036b63777c22c9359b1e03cc784fb098616cbc45c2ad654f38285500c9ca1c34e7659a30eea4542f2d76a41a1df8c74a100fa2b
|
7
|
+
data.tar.gz: b6eb4b8508a83381d725402ab1c73de90705317a465efcd1331f7a61785fa39763fe0f1697df256694c052e7530324d85b9167b9e252a5168f85a0562a8c15b5
|
@@ -42,7 +42,7 @@ class CreditCardSanitizer
|
|
42
42
|
LINE_NOISE_CHAR = /[^\w_\n,().\/:;<>]/
|
43
43
|
LINE_NOISE = /#{LINE_NOISE_CHAR}{,5}/
|
44
44
|
NONEMPTY_LINE_NOISE = /#{LINE_NOISE_CHAR}{1,5}/
|
45
|
-
SCHEME_OR_PLUS = /((?:+|\+)|(?:[a-zA-Z][\-+.a-zA-Z\d]{,9})
|
45
|
+
SCHEME_OR_PLUS = /((?:+|\+)|(?:[a-zA-Z][\-+.a-zA-Z\d]{,9}):[^\s>]+)/
|
46
46
|
NUMBERS_WITH_LINE_NOISE = /#{SCHEME_OR_PLUS}?\d(?:#{LINE_NOISE}\d){10,18}/
|
47
47
|
|
48
48
|
DEFAULT_OPTIONS = {
|