fix(cloudcmd) value -> typeof value

This commit is contained in:
coderaiser 2015-08-24 06:31:08 -04:00
parent 410cb62fac
commit 116f7359df

View file

@ -74,7 +74,7 @@
value = createPass(config('algo'), value);
break;
case 'prefix':
if (value) {
if (typeof value === 'string') {
if (!~value.indexOf('/'))
value = '/' + value;
else if (value.length === 1)