fat_fingers 0.1.34 → 0.1.35
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fat_fingers.rb +2 -2
- data/test/test_fat_fingers.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62cbeca39129b05b857c99e73667f3796a6a132a3479ebed0c692cc26ced1e9f
|
4
|
+
data.tar.gz: 7870519d781db7f5e979308508019b1b9b008cd1fb8ee863df96c02eb48adae8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25049cafe5a2138e964699965d6a3e88f44c64a90b59eada5a11e38d9bd796b250220c185327fb55dc9cb6505a0ea3ff050b414a2e699dc433066cd26720e0c7
|
7
|
+
data.tar.gz: 9d5f4d1a2e2494c2ab05a6dcef2e7f60043418aebe9af06706e770a601ac742be518512be8395d9bda028fc23da456ba3794e0e4608332aa3cb13dc569159a68
|
data/lib/fat_fingers.rb
CHANGED
@@ -80,11 +80,11 @@ protected
|
|
80
80
|
end
|
81
81
|
|
82
82
|
def clean_up_googlemail
|
83
|
-
gsub(/@go{0,3}g{0,2}o?le?[mn]?[ail]{1,2}m?[aikl]{0,3}
|
83
|
+
gsub(/@go{0,3}g{0,2}o?le?[mn]?[ail]{1,2}m?[aikl]{0,3}\.(?!gov)(?!edu)(?!ac.in)/,"@googlemail.")
|
84
84
|
end
|
85
85
|
|
86
86
|
def clean_up_gmail
|
87
|
-
gsub(/@ga?e?i?o?r?g?[nm]{0,2}s?[ail]{1,2}[aiklmou]{0,3}\.(?!gov)(?!edu)/,"@gmail.") # match a broad variety of mispellings of gmail, but not if it's .gov or .edu
|
87
|
+
gsub(/@ga?e?i?o?r?g?[nm]{0,2}s?[ail]{1,2}[aiklmou]{0,3}\.(?!gov)(?!edu)(?!ac.in)/,"@gmail.") # match a broad variety of mispellings of gmail, but not if it's .gov or .edu
|
88
88
|
end
|
89
89
|
|
90
90
|
def clean_up_hotmail
|
data/test/test_fat_fingers.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fat_fingers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.35
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Charlie Park
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-
|
12
|
+
date: 2020-10-01 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Makes sure users don't accidentally create an account for the wrong e-mail
|
15
15
|
address. Because 'gmial' isn't actually what they meant to type. Similarly, 'yaho.com',
|