Skip to content

Allow punycode emails #17

@fraserredmond

Description

@fraserredmond

An example from the comments on https://isemail.info

почта@домен.рф turns to xn--@-7sbne8ahbde5a8c.xn--p1ai

Both of those emails fail. Seems like it's the xn-- and @- that cause it to fail. As a workaround I'm replacing them to "xn" and "@" before passing to is_email.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions