valid-url
valid-url copied to clipboard
Additional test cases
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://उदाहरण.परीक्षा
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 ;)