fis-command-release
Advanced tools
Comparing version 0.7.7 to 0.7.8
@@ -33,2 +33,5 @@ /* | ||
if(file.release){ | ||
if(dest.from !== '/'){ | ||
file.release = file.release.substring(dest.from.length); | ||
} | ||
if(dest.receiver){ | ||
@@ -50,3 +53,7 @@ if(!file.useHash || dest.md5 != 1){ | ||
function normilize(str){ | ||
return String(str || '').replace(/^\/|\/$/, ''); | ||
str = (str || '').trim(); | ||
if(str[0] !== '/'){ | ||
str = '/' + str; | ||
} | ||
return str.replace(/\/$/, '') + '/'; | ||
} | ||
@@ -94,3 +101,3 @@ | ||
file.release && | ||
file.release.substring(1).indexOf(d.from) === 0 && | ||
file.release.indexOf(d.from) === 0 && | ||
fis.util.filter(file.subpath, d.include, d.exclude) | ||
@@ -97,0 +104,0 @@ ){ |
{ | ||
"name" : "fis-command-release", | ||
"description" : "fis release command.", | ||
"version" : "0.7.7", | ||
"version" : "0.7.8", | ||
"author" : "FIS Team <fis@baidu.com>", | ||
@@ -6,0 +6,0 @@ "homepage" : "http://fis.baidu.com/", |
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
13584
290