is-url-superb
Advanced tools
Comparing version 1.0.0 to 1.0.1
'use strict'; | ||
var urlRegex = require('url-regex'); | ||
var re = new RegExp('^' + urlRegex().source + '$', 'i'); | ||
var urlRegex = require('url-regex')({exact: true}); | ||
@@ -10,3 +9,3 @@ module.exports = function (url) { | ||
return re.test(url.trim()); | ||
return urlRegex.test(url.trim()); | ||
}; |
{ | ||
"name": "is-url-superb", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Check if a string is an URL", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
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
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
2595
4
8
2