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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user