Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional test cases #17

Open
zachleat opened this issue Jan 25, 2018 · 1 comment
Open

Additional test cases #17

zachleat opened this issue Jan 25, 2018 · 1 comment

Comments

@zachleat
Copy link

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://उदाहरण.परीक्षा
@adrienv1520
Copy link

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 ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants