Comparing version 0.1.9 to 0.1.10
{ | ||
"name": "hutil", | ||
"version": "0.1.9", | ||
"version": "0.1.10", | ||
"description": "Hola Utilities", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -292,8 +292,13 @@ // LICENSE_CODE ZON ISC | ||
E.http_glob_host = function(host, end){ | ||
var port = ''; | ||
var parts = host.split(':'); | ||
host = parts[0]; | ||
if (parts.length>1) | ||
port = ':'+parts[1].replace('*', '[0-9]+'); | ||
var n = host.match(/^(|.*[^*])(\*+)$/); | ||
if (n) | ||
{ | ||
host = E.http_glob_host(n[1]) | ||
+(n[2].length==1 ? '[^./]+' : '[^/]'+(n[1] ? '*' : '+')); | ||
return token_regex(host, end); | ||
host = E.http_glob_host(n[1]) | ||
+(n[2].length==1 ? '[^./]+' : '[^/]'+(n[1] ? '*' : '+')); | ||
return token_regex(host+port, end); | ||
} | ||
@@ -305,3 +310,3 @@ /* '**' replace doesn't use '*' in output to avoid conflict with '*' | ||
.replace(/\*/g, '[^./]+\\.'); | ||
return token_regex(host, end); | ||
return token_regex(host+port, end); | ||
}; | ||
@@ -308,0 +313,0 @@ |
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
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
17
283888
45
9133
8