Bug fix: Issue with stripping modifiers with no trailing characters after placeholder

When using a modifier with no trailing characters after the placeholder eg. setting a color style with #{0}.  The end selection is set to 0 resulting in the value also being stripped
This commit is contained in:
Hai Le
2015-08-01 15:54:00 +10:00
parent 5fdd7d8bd6
commit 4697f2ecad

View File

@@ -22,7 +22,10 @@ angular.module("umbraco")
} else {
return val.slice(paddArray[0].length, 0);
}
}else{
} else {
if (paddArray[1].length === 0) {
return val.slice(paddArray[0].length);
}
return val.slice(paddArray[0].length, -paddArray[1].length);
}
}