Skip to content

Bugs on email validation/刚刚余飞跑过来炫耀网站 #13

Open

Description

@johnmave126

js/postile/view/signup/signup.js

According to Section 3.4.1 of RFC 2822
Address
"test"@example.com
should be valid. However, because of an extra space,

(\ ".+")

it fails.

Also according to RFC 1034 and the document above.
The domain part of the email can be more flexible
There can be CNAME email address such as
example@hk
There can be IPv6 email address such as
example@[1::3F]
Since the unicode domain name is part of RFC or IETS
Some weird email address such as
example@exàmple.com
should also be valid.

Activity

  1. fyuhkust commented on Apr 16, 2013

    @fyuhkust
    Member

    哈哈,求轻黑呀~ 因为有问题所以需要更多development~ Update 一下你呀,我们潜在member。那个李涛。。跟进一下?LOL

  2. johnmave126 commented on Apr 16, 2013

    @johnmave126
    Author

    其实呢.....这不是什么大问题....特别是domain name其实可以认为是un-validatable的= =
    我就那么一说

  3. guanlun commented on Apr 16, 2013

    @guanlun
    Member

    WTH?
    不明觉厉?

  4. litao91 commented on Apr 16, 2013

    @litao91
    Member

    @FeiAline 你知道这个其实是可以@人的么?我没看懂。。什么情况

  5. litao91 commented on Apr 16, 2013

    @litao91
    Member

    @johnmave126 你是说email的那串正则表达式么?根据我的了解好像严格意义上的email地址规范是比较宽松的,但是多数网站在注册的时候对符号都有限制。然后那个exàmple.com怎么match...求指教。

  6. johnmave126 commented on Apr 17, 2013

    @johnmave126
    Author

    我的理解是,如果填邮箱的目的是为了发验证邮件的话....
    完全可以只验证local part...
    domain name如果填错了收不到邮件完全是填的人的问题....

    Best Regards,
    John Tan

    2013/4/17 litao91 notifications@github.com

    @johnmave126 https://github.com/johnmave126你是说email的那串正则表达式么?根据我的了解好像严格意义上的email地址规范是比较宽松的,但是多数网站在注册的时候对符号都有限制。然后那个
    exàmple.com http://xn--exmple-jta.com怎么match...求指教。

    —
    Reply to this email directly or view it on GitHubhttps://github.com//issues/13#issuecomment-16465957
    .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions