url-regex
url-regex copied to clipboard
Regular expression for matching URLs
The library cannot be used out-of-the-box on IE11 because IE6 is not supported there. This PR simply convert the two arrow functions into classic `function`s and replace `const` by `var`
The presence of `).{%` trailing a valid URL (e.g. `http://cnn.com/).{%`) causes the error: ``` [PATH]/node_modules/normalize-url/index.js:82 urlObj.pathname = decodeURI(urlObj.pathname); ^ URIError: URI malformed at decodeURI (native) at module.exports ([PATH]/node_modules/normalize-url/index.js:82:21) at [PATH]/node_modules/get-urls/index.js:14:10...
Following url returns true. shttpss://cdnjs.cloudflare.com/ajax/libs/gsap/1.20.3/TweenLite.min.js
Hey there! We're using this library to pull urls out of a user input string. We're currently running into a problem where it returns email addresses. ``` 'This is an...
running `urlRegex({strict: false}).test('something github.are foo bar');` returns true even though "are" isnt on the list of tld's 
Looks like `ip-regex` already provides the patterns: https://github.com/sindresorhus/ip-regex/blob/605041b6a32ac7cca8b9c827bb9abc34e9336be0/index.js#L9-L20
Since the update to release 5.0.0 - the spread operator at https://github.com/kevva/url-regex/blob/master/index.js#L8 is causing issues in some browsers which don't support that. even though node handles it, javascript fails in...
- the `tlds` library bloats the bundle size of this library by a lot ([6kb minified according to bundlephobia](https://bundlephobia.com/[email protected])), most of which are irrelevant to almost all users of the...
One of examples in https://www.ietf.org/rfc/rfc2396.txt is not recognised: `news:comp.infosystems.www.servers.unix` originally raised at https://github.com/sindresorhus/is-url-superb/issues/5
currently, the URL will return true for `https://url.coINVALID` and return "https://url.co". would be nice to have the library not match these (same kinda thing like the `\b` flag)