Skip to content

Commit 824bc71

Browse files
committed
Domain regex shouldn't reject one character name
For example `q.com`
1 parent 10d2ee1 commit 824bc71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/possible_email.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
HTTPI.log = false
1010

1111
EMAIL_REGEX = /^([\w\.%\+\-]+)@([\w\-]+\.)+([\w]{2,})$/i
12-
DOMAIN_REGEX = /^[^@]([\w\-]+\.)+([\w]{2,})$/
12+
DOMAIN_REGEX = /^([\w\-]+\.)+([\w]{2,})$/
1313
NAME_REGEX = /^\b[a-zA-Z]+\b$/
1414

1515
module PossibleEmail

0 commit comments

Comments
 (0)