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

Additional test cases

Open zachleat opened this issue 7 years ago • 1 comments

https://gist.github.com/mxpv/034933deeebb26b62f14

Was running the above through valid-url and here are the ones that failed when they should have succeeded:

http://✪df.ws/123
http://➡.ws/䨹
http://⌘.ws
http://⌘.ws/
http://foo.com/unicode_(✪)_in_parens
http://☺.damowmow.com/
http://مثال.إختبار
http://例子.测试
http://उदाहरण.परीक्षा

zachleat avatar Jan 25 '18 13:01 zachleat

Hi @zachleat,

Built this strictly based on RFC-3986: https://github.com/adrienv1520/node-uri

It supports IDNs and 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