credit_card_sanitizer 0.5.0 → 0.5.1
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 +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 917c763caa50668e99d89c8cf7ad2e3d7afee15d
|
4
|
+
data.tar.gz: fa77dc7be5873ae224869aedb38e2a8279ac44bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e60ed793ccaf71f10116ce91acc93c7c3a3e16f2fefe860a898db505f7763acadac900aae6f720afafe212b48788a982624bfbcec9bcda1d38998c13c122d0e
|
7
|
+
data.tar.gz: ca00a5108d22bc8464737fb6d5bb7c4ff21450b9da82d42efab870b950ce27b24dd0e15101763d5cb539c62e15aab6ebdd7f29b909a8fca9a87cf36ec623dc10
|
@@ -39,7 +39,7 @@ class CreditCardSanitizer
|
|
39
39
|
|
40
40
|
VALID_COMPANY_PREFIXES = Regexp.union(*CARD_COMPANIES.values)
|
41
41
|
EXPIRATION_DATE = /\s(?:0?[1-9]|1[0-2])(?:\/|-)(?:\d{4}|\d{2})(?:\s|$)/
|
42
|
-
LINE_NOISE_CHAR = /[^\w_\n,()
|
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
45
|
SCHEME_OR_PLUS = /((?:+|\+)|(?:[a-zA-Z][\-+.a-zA-Z\d]{,9}):\S+)/
|
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.5.
|
4
|
+
version: 0.5.1
|
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: 2016-
|
13
|
+
date: 2016-07-29 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: appraisal
|