dify icon indicating copy to clipboard operation
dify copied to clipboard

fix: Fix the email validation problem for [email protected].

Open hengqujushi opened this issue 1 year ago • 0 comments

There are two points in the email verification logic that are easily overlooked. Firstly, the username before the "@" symbol can include not only the conventional requirements of uppercase and lowercase letters, numbers, and underscores for variable naming, but also support "-" and "." symbols. Secondly, the domain name after the "@" symbol needs to meet the first point and also support multiple levels of domains, with the top-level domain being 2 to 4 characters long and typically ending in "io," "org," "club," etc. A good test case is the email address "[email protected]" from Alibaba Group.

hengqujushi avatar May 18 '23 09:05 hengqujushi