简体   繁体   中英

Is the @ symbol required for an email address for it to be considered RFC compliant?

我发现我的JavaScript代码允许通过字符串中没有@符号的电子邮件地址,这样可以吗?

In RFC 822 , p.27, an address is defined by

addr-spec   =  local-part "@" domain        ; global address

So definitely, you need the "@" character.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM