fat_fingers 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/fat_fingers.rb +1 -1
- data/test/test_fat_fingers.rb +2 -0
- metadata +1 -1
data/lib/fat_fingers.rb
CHANGED
@@ -23,7 +23,7 @@ class String
|
|
23
23
|
.gsub(/\.og*r*g*$/, ".org") #require the o, to not false-positive .gr e-mails
|
24
24
|
.gsub(/@coma*cas*t.net/,"@comcast.net")
|
25
25
|
.gsub(/@sbcgloba.net/, "@sbcglobal.net")
|
26
|
-
.gsub(/@
|
26
|
+
.gsub(/@g(n|m)*i*a*m*l*i*l*a*\./,"@gmail.")
|
27
27
|
.gsub(/@y*a*h*a*o*\./,"@yahoo.")
|
28
28
|
.gsub(/@h(o|p)*to*m*i*a*l*i*l*a*\./,"@hotmail.")
|
29
29
|
end
|
data/test/test_fat_fingers.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'minitest/autorun'
|
2
2
|
require 'fat_fingers'
|
3
|
+
#require './lib/fat_fingers.rb'
|
3
4
|
|
4
5
|
class StringTest < MiniTest::Unit::TestCase
|
5
6
|
def setup
|
@@ -65,6 +66,7 @@ class StringTest < MiniTest::Unit::TestCase
|
|
65
66
|
"test@gmail.conm",
|
66
67
|
"test@gmail.coom",
|
67
68
|
"test@gmail.c0m",
|
69
|
+
"test@gnail.com",
|
68
70
|
|
69
71
|
"TEST@GMAIL.COM"
|
70
72
|
]
|