Skip to content

feature request: validators.uri() #40

Closed
@johnnybubonic

Description

@johnnybubonic

it may be worth adding a separate method, validators.uri()

https://en.wikipedia.org/wiki/Uniform_Resource_Identifier

validators.url() could then be validators.uri.url() (while retaining validators.url() for backwards compatibility).

this would also allow file paths to be validated, e.g.

validators.uri.file('file:///tmp/file.txt')

IRC connections:

validators.uri.irc('irc://irc.freenode.org:6667/#somechannel

etc.

For official specification, see RFC3986 § 3.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementIssue/PR: A new featureoutdatedIssue/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