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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a261b73722b8e8d4c06560471d37414141e55717
4
- data.tar.gz: 9965b9987b96acb630fd8e25aabe4816616caa59
3
+ metadata.gz: a5bcd42d1f6150631ffd7b6396c6b55f3fe2d7e0
4
+ data.tar.gz: bdc00c28890a73bdfc0ce27dfff8cafb844f9e61
5
5
  SHA512:
6
- metadata.gz: a5ad9c4cb5b8e2a81fe30c2d26faf91c27e1cd61915ca49601d4269d8e8335020f35aa6b87ebaaa8da5600eb3ac882467589d7cf12794198ed4ac58b45a7f1de
7
- data.tar.gz: fc7437e569a114e98b48f3d084b76fd42eaf080622894d1663fac52e52ffc3890900332e2f322b31d807aaaf372058da785855aa05584a643c610159cf40d2ef
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| /(?=((?<!\d)(?:\d#{SEPRS}){#{length - 1}}\d(?!\d))?)/.source }.join
11
+ LENGTHS.map { |length| /(?=(\b(?:\d#{SEPRS}){#{length - 1}}\d\b)?)/.source }.join
12
12
  )
13
13
  FILTERED = '[FILTERED]'
14
14
 
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module SensitiveDataFilter
3
- VERSION = '0.2.3'
3
+ VERSION = '0.2.4'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensitive_data_filter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alessandro Berardi