credit_card_sanitizer 0.3.5 → 0.3.6
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 +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20562200866fed490309b2559d1f103148ec4df1
|
4
|
+
data.tar.gz: f51b6058cec0417c8629ca0370d1f654f83385a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 306267938d12166230a5ae4c1b7572895f01218c2a2232aba257ba256a7835d8cd158db613887bec4dab17631b04e25772937cb6ff3f08fff5081fe614034d3d
|
7
|
+
data.tar.gz: e7ddee87c6b62c64e2ab9a481ffc71f9176c74527b15e6c4ffecf16e70ca04d2028a10c04359d1f25583cdc809f1d500a81ed5f85934492506da6c3d9cafcca7
|
@@ -23,7 +23,7 @@ class CreditCardSanitizer
|
|
23
23
|
}
|
24
24
|
VALID_COMPANY_PREFIXES = Regexp.union(*CARD_COMPANIES.values)
|
25
25
|
EXPIRATION_DATE = /\s(?:0?[1-9]|1[0-2])(?:\/|-)(?:\d{4}|\d{2})(?:\s|$)/
|
26
|
-
LINE_NOISE = /[^\w_\n,()
|
26
|
+
LINE_NOISE = /[^\w_\n,()\/:;<>]{,5}/
|
27
27
|
SCHEME_OR_PLUS = /((?:+|\+)|(?:[a-zA-Z][\-+.a-zA-Z\d]{,9}):\S+)/
|
28
28
|
NUMBERS_WITH_LINE_NOISE = /#{SCHEME_OR_PLUS}?\d(?:#{LINE_NOISE}\d){10,18}/
|
29
29
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: credit_card_sanitizer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Chapweske
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-
|
13
|
+
date: 2015-11-05 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: appraisal
|
@@ -110,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
110
110
|
version: '0'
|
111
111
|
requirements: []
|
112
112
|
rubyforge_project:
|
113
|
-
rubygems_version: 2.4.
|
113
|
+
rubygems_version: 2.4.8
|
114
114
|
signing_key:
|
115
115
|
specification_version: 4
|
116
116
|
summary: Credit card sanitizer
|