Skip to content

Commit ba69fa3

Browse files
authored
Merge pull request #1044 from xzzy/master2
fix for subdomain emails
2 parents fa6dfbf + d28bcab commit ba69fa3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ledgergw/api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1727,7 +1727,7 @@ def create_get_emailuser(request,apikey):
17271727
email = data['email']
17281728

17291729
regex_one_dot = '^[a-z0-9\._+]+[@]\w+[.]\w+$'
1730-
regex_two_dot = '^[a-z0-9\._+]+[@]\w+[.]\w{2,3}[.]\w{2}$'
1730+
regex_two_dot = '^[a-z0-9\._+]+[@]\w+[.]\w+[.]\w+$'
17311731
regex_three_dot = '^[a-z0-9\._+]+[@]\w+[.]\w{2,3}[.]\w{2,3}\w[.]\w{2}$'
17321732

17331733
if re.match(regex_one_dot,email) or re.match(regex_two_dot,email) or re.match(regex_three_dot,email):

0 commit comments

Comments
 (0)