commonregex 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/commonregex.rb +1 -0
- 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: 673d3901fb5e5f240782e68a6d251c4e989bf9cf
|
4
|
+
data.tar.gz: a7969bbc0c7dfce93f869b640f7df5e7047f16d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 760d9b167e068162018da4b9b702e3c14a04592bb88d4230d05ec6c2cb44019d394f9c22258f9f0466387413552b5c61954a0ab59e29d662bab4b0587cdfdb39
|
7
|
+
data.tar.gz: c0ce842f64d8e8a8d0fc851635a90a1f6d370d05d773ac885e1e0499703607ff244f2db9675c21b0c4d40f913d53601e86fcbb1e46c5d7aa0d350305693c25a1
|
data/lib/commonregex.rb
CHANGED
@@ -40,6 +40,7 @@ class CommonRegex
|
|
40
40
|
@@credit_card_regex = /((?:(?:\d{4}[- ]){3}\d{4}|\d{16}))(?![\d])/m
|
41
41
|
@@address_regex = /(\d{1,4} [\w\s]{1,20}(?:(street|avenue|road|highway|square|traill|drive|court|parkway|boulevard)\b|(st|ave|rd|hwy|sq|trl|dr|ct|pkwy|blvd)\.(?=\b)?))/im
|
42
42
|
|
43
|
+
|
43
44
|
def initialize(text = '')
|
44
45
|
@text = text;
|
45
46
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: commonregex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Talysson Oliveira Cassiano
|
@@ -38,7 +38,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
38
38
|
version: '0'
|
39
39
|
requirements: []
|
40
40
|
rubyforge_project:
|
41
|
-
rubygems_version: 2.
|
41
|
+
rubygems_version: 2.2.2
|
42
42
|
signing_key:
|
43
43
|
specification_version: 4
|
44
44
|
summary: CommonRegex port for Ruby
|