Skip to content

Underscores in URLs seem to break the validator #102

@chalbersma

Description

@chalbersma

URLs can have underscores in the subdomain and be valid. https://stackoverflow.com/questions/2180465/can-domain-name-subdomains-have-an-underscore-in-it URLs with underscores are incorrectly identified as not being URLs.

Example of the failure :

>>> validators.url("https://sample_subdomain.example.com")
ValidationFailure(func=url, args={'value': 'https://sample_subdomain.example.com', 'public': False})
>>> validators.url("https://sample-subdomain.example.com")
True

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue: Works not as designedoutdatedIssue/PR: Open for more than 3 months

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions