Comparing version 1.0.1 to 2.0.0
'use strict'; | ||
var arrayUniq = require('array-uniq'); | ||
var urlRegex = require('url-regex'); | ||
module.exports = function (str) { | ||
var reUrl = /(^|\s)((https?:\/\/)?[\w-]+(\.[\w-]+)+\.?(:\d+)?(\/\S*)?)/gi; | ||
var urls = str.match(reUrl); | ||
var urls = str.match(urlRegex()); | ||
@@ -8,0 +8,0 @@ if (!urls) { |
{ | ||
"name": "get-urls", | ||
"version": "1.0.1", | ||
"version": "2.0.0", | ||
"description": "Get all urls in a string", | ||
@@ -41,3 +41,4 @@ "license": "MIT", | ||
"array-uniq": "^1.0.0", | ||
"get-stdin": "^1.0.0" | ||
"get-stdin": "^3.0.0", | ||
"url-regex": "^1.0.2" | ||
}, | ||
@@ -44,0 +45,0 @@ "devDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2487
3
+ Addedurl-regex@^1.0.2
+ Addedget-stdin@3.0.2(transitive)
+ Addedurl-regex@1.0.4(transitive)
- Removedget-stdin@1.0.0(transitive)
Updatedget-stdin@^3.0.0