ogt / valid-url

Node module that provides URI validation functions
https://npmjs.org/package/valid-url
Other
215 stars 26 forks source link

Wrong processing of URL #14

Open EJohnF opened 7 years ago

EJohnF commented 7 years ago

try to verify that url: http://wrong%20link.tech/JFKblue.gif

if (validUrl.isWebUri(http://wrong%20link.tech/JFKblue.gif)){ console.log('Looks like an URI');

in logs I see that it looks like an URI, but it's not.

adrienv1520 commented 4 years ago

Hi @EJohnF,

Sure this URL is wrong.

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:

I hope it could help you.