Closed nitr0man closed 1 year ago
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})
There is an error in URL validation when domain have two dashes. Domain validator passed such domains successfully.