-
Notifications
You must be signed in to change notification settings - Fork 168
Closed
Labels
bugIssue: Works not as designedIssue: Works not as designedduplicateIssue/PR: RedundantIssue/PR: RedundantoutdatedIssue/PR: Open for more than 3 monthsIssue/PR: Open for more than 3 months
Description
There is an error in URL validation when domain have two dashes. Domain validator passed such domains successfully.
In [1]: import validators
In [2]: validators.domain('foo-bar.com')
Out[2]: True
In [3]: validators.domain('foo--bar.com')
Out[3]: True
In [4]: validators.url('http://foo-bar.com')
Out[4]: True
In [5]: validators.url('http://foo--bar.com')
Out[5]: ValidationFailure(func=url, args={'value': 'http://foo--bar.com', 'public': False})
CuriouslyCory and don-silvia
Metadata
Metadata
Assignees
Labels
bugIssue: Works not as designedIssue: Works not as designedduplicateIssue/PR: RedundantIssue/PR: RedundantoutdatedIssue/PR: Open for more than 3 monthsIssue/PR: Open for more than 3 months