- Revert prefer-named-capture-group due to apparently problematic Babel plugin
This commit is contained in:
@@ -166,7 +166,8 @@ export const sanitizeSvg = function (node) {
|
||||
case 'transform':
|
||||
case 'gradientTransform':
|
||||
case 'patternTransform': {
|
||||
const val = attr.value.replace(/(?<digit>\d)-/g, '$<digit> -');
|
||||
const val = attr.value.replace(/(\d)-/g, '$1 -');
|
||||
// const val = attr.value.replace(/(?<digit>\d)-/g, '$<digit> -');
|
||||
node.setAttribute(attrName, val);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user