media-helper
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -21,4 +21,3 @@ 'use strict' | ||
return false | ||
} | ||
} | ||
} | ||
@@ -32,4 +31,4 @@ | ||
function isURL (str) { | ||
const urlRegex = /^https?:\/\//i | ||
return urlRegex.test(str) | ||
var matcher = /^(?:\w+:)?\/\/([^\s\.]+\.\S{2}|localhost[\:?\d]*)\S*$/ | ||
return matcher.test(str) | ||
} | ||
@@ -36,0 +35,0 @@ |
{ | ||
"name": "media-helper", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "A small module to help detecting and converting files through URL/file sytem", | ||
@@ -5,0 +5,0 @@ "main": "media-helper.js", |
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
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
5820129
1