valid-url icon indicating copy to clipboard operation
valid-url copied to clipboard

Again false positive in a url

Open gil2gm opened this issue 5 years ago • 1 comments

Again the value

NOT URL http://a.b--c.de/ NOT URL http://www.foo.bar./

Return True

gil2gm avatar Jun 08 '19 19:06 gil2gm

Hi @gil2gm,

I was facing the same issues with valid-url but also validator so I decided to build a module as reliable as possible strictly based on RFC-3986: https://github.com/adrienv1520/node-uri

The main features of this project are:

  • parse any URI (URNs, URLs, URIs with IDNs support, etc.);
  • get the safe Punycode ASCII or Unicode serialization of a domain;
  • check an URI, HTTP/HTTPS/Sitemap URL, IP, domain is valid with clear checking errors;
  • encode/decode an URI, HTTP/HTTPS/Sitemap URL.

I hope it could help you.

adrienv1520 avatar Oct 17 '20 16:10 adrienv1520