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

Loosely validate a URL.

Results 12 is-url issues
Sort by recently updated
recently updated
newest added

From [npm's package.json docs](https://www.npmjs.org/doc/package.json.html#Git-URLs-as-Dependencies), Git urls can be of the form: - git://github.com/user/project.git#commit-ish - git+ssh://user@hostname:project.git#commit-ish - git+ssh://user@hostname/project.git#commit-ish - git+http://user@hostname/project/blah.git#commit-ish - git+https://user@hostname/project/blah.git#commit-ish Not sure it's appropriate to support these kinds of...

At the moment, `is-url` does not support urls like below: - http://someserver/abc (without any dot) - http://someserver:port/abc

``` var matcher = /^\w+:\/\/([^\s\.]+\.\S{2}|localhost[\:?\d]*)\S*$/; ``` Will fail SO badly in [so many cases](http://benalman.com/code/test/js-linkify/): IDNs, modern TLDs, parens in URLs, punctuation at the end [etc.](http://stackoverflow.com/questions/37684/how-to-replace-plain-urls-with-links) There's a much more powerful...

The modules allows: - "http://www.google.com" - "https://www.google.com" - "http://google.com" - "http://www.google.com/imghp" - "http://g.co" and disallows: - "www.google" - "google" - "google#.com" - "google-.co" The problem is that it ALLOWS ```http://www.google```...

https://www.w3.org/Addressing/URL/url-spec.html#z22

I was trying to test this library with GramTest, a grammar based test case generation tool (https://github.com/codelion/gramtest). I found that it fails to to check ftp URLs. `isUrl('ftp://username:password@hostname') //returns false`

It fails on this URL https://chat..zulip.org. https://chat..zulip.org --> true https://chat.zulip..org --> true https://chat.zulip.org.. --> true and it should be false.

I tried to fuzz the library again using GramTest, a grammar based test case generation tool (https://github.com/codelion/gramtest). I found that it fails to to check mailto URLs. `isUrl('mailto:[email protected]') // false`