sensitive_data_filter 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/sensitive_data_filter/types/credit_card.rb +1 -1
- data/lib/sensitive_data_filter/version.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: a5bcd42d1f6150631ffd7b6396c6b55f3fe2d7e0
|
4
|
+
data.tar.gz: bdc00c28890a73bdfc0ce27dfff8cafb844f9e61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a45d2aa68ce255f7efd545318650c1b3007dda3aa38ec7503233678bcd79a54826188615a222703dbb548179fd341c2cc0f73c12519d174bb04f3186f271eba
|
7
|
+
data.tar.gz: e13bea99f41ed5a23c64643f8e75d64e11748a27bebee2575e3172fe7e022ea0aecb4da4d5c110103fc30cdfe88a1aa0e59288e7fbeef597e3f24e98a2c8a0b6
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file.
|
|
3
3
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
4
4
|
This changelog adheres to [Keep a CHANGELOG](http://keepachangelog.com/).
|
5
5
|
|
6
|
+
## [0.2.4] - 2016-12-22
|
7
|
+
### Changed
|
8
|
+
- Does not match credit cards numbers that are part of alphanumerical strings
|
9
|
+
|
6
10
|
## [0.2.3] - 2016-12-22
|
7
11
|
### Fixed
|
8
12
|
- Ensures that the url returned by the occurrence is filtered
|
@@ -8,7 +8,7 @@ module SensitiveDataFilter
|
|
8
8
|
SEPRS = SEPARATORS.source + '*'
|
9
9
|
LENGTHS = (11..19)
|
10
10
|
CARD = Regexp.new(
|
11
|
-
LENGTHS.map { |length| /(?=((
|
11
|
+
LENGTHS.map { |length| /(?=(\b(?:\d#{SEPRS}){#{length - 1}}\d\b)?)/.source }.join
|
12
12
|
)
|
13
13
|
FILTERED = '[FILTERED]'
|
14
14
|
|