Skip to content

Newer tlds not supported #5057

Description

@armijnhemel

Description

The current e-mail regular expression cannot catch the latest (and greatest?) TLDs. There are many these days:

https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains

but scancode limits it to something either 2, 3 or 4 characters:

def emails_regex():
    return re.compile('\\b[A-Z0-9._%-]+@[A-Z0-9.-]+\\.[A-Z]{2,4}\\b', re.IGNORECASE)

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions