flex-combo-plus
Advanced tools
Comparing version 2.0.3 to 2.0.4
@@ -99,6 +99,38 @@ /** | ||
var matchedRule = (function(){ | ||
var i, n, rule; | ||
var i, n, rule, | ||
dirpars, dirname, filepre; | ||
for(i = 0, n = rules.length; i < n; i++){ | ||
rule = rules[i]; | ||
if(!rule.disabled && rule.from.test(reqPars.dirname)){ | ||
dirpars = reqPars.dirname.split(options.request.combo.dir); | ||
dirname = options.request.combo.dir; | ||
filepre = ''; | ||
while(!dirpars[0]){ dirpars.shift(); } | ||
while(!dirpars[dirpars.length - 1]){ dirpars.pop(); } | ||
for(i = 0, n = dirpars.length - 1; i < n; i++){ | ||
dirname += dirpars[i] + options.request.combo.dir; | ||
if(rule.from.test(dirname)){ | ||
i = i + 1; | ||
n = dirpars.length; | ||
while(i < n){ | ||
filepre += dirpars[i] + options.request.combo.dir; | ||
i++; | ||
} | ||
reqPars.dirname = dirname; | ||
for(i = 0, n = reqPars.filenames.length; i < n; i++){ | ||
reqPars.filenames[i] = filepre + reqPars.filenames[i]; | ||
} | ||
return rule; | ||
} | ||
} | ||
return rule; | ||
@@ -105,0 +137,0 @@ } |
{ | ||
"name": "flex-combo-plus", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "process engine for aproxy", | ||
@@ -5,0 +5,0 @@ "main": "instance.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
21292
491