vigour-util
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -1,5 +0,5 @@ | ||
'use struct' | ||
var url = /^(((ws(s)?)|(http(s)?))\:\/\/)?[a-zA-Z0-9_-]+(\.|\:)([^\/\/])[a-zA-Z/0-9$-/:-?{-~!"^_`\[\]]+$/ | ||
'use strict' | ||
var url = /^(((ws(s)?)|(http(s)?))\:\/\/)?[a-zA-Z0-9_-]+(\.|\:)([^\/\/])[a-zA-Z/0-9$-/:-?{#-~!"^_`\[\]]+$/ | ||
module.exports = function (val) { | ||
return typeof val === 'string' && url.test(val) | ||
return typeof val === 'string' && url.test(val) || val === 'localhost' | ||
} |
{ | ||
"name": "vigour-util", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"author": "Vigour.io <dev@vigour.io>", | ||
"scripts": { | ||
"test": "node test" | ||
}, | ||
"repository": { | ||
@@ -33,3 +36,6 @@ "type": "git", | ||
], | ||
"license": "ISC" | ||
"license": "ISC", | ||
"devDependencies": { | ||
"tape": "^4.5.1" | ||
} | ||
} |
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
36375
34
1054
1