Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Email 校验不支持域名有 - 字符的情况 #13

Closed
hotoo opened this issue Feb 9, 2015 · 1 comment
Closed

Email 校验不支持域名有 - 字符的情况 #13

hotoo opened this issue Feb 9, 2015 · 1 comment
Labels

Comments

@hotoo
Copy link
Member

hotoo commented Feb 9, 2015

a@b-inc.com
@hotoo hotoo added the bug label Feb 9, 2015
@hotoo hotoo closed this as completed in f276ea7 Feb 9, 2015
@hotoo
Copy link
Member Author

hotoo commented Feb 9, 2015

内置的 email 校验较为适中,不限为任一邮件服务商,又不支持国际化(Unicode,如中文、日文)

另外,理论上hostname 部分,应该提供 IPv6 的支持,但是实际上非常少用,这里暂不提供支持。

  • 如果需要更为精确的定制,可以增加 custom 校验。
  • 如果需要更为宽泛的 Unicode 支持,建议不使用 type=email 规则,直接使用 custom 规则。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant