python-string-utils icon indicating copy to clipboard operation
python-string-utils copied to clipboard

Url validation

Open devikasondhi opened this issue 5 years ago • 0 comments

Hello,

Here are some scenarios where is_url shows unexpected behaviour:

  1. http://google.abcdefghi is valid but is_url states False in its test suite- constraining TLD to length 6 but TLD length specified by RFC 1034 is 63 octets. Real TLDs available here of length >6 http://data.iana.org/TLD/tlds-alpha-by-domain.txt
  2. url with host ending in dot: http://www.foo.bar./ is valid as per https://www.w3.org/Addressing/URL/url-spec.txt#page13 while is_url returns False

devikasondhi avatar Apr 13 '20 08:04 devikasondhi