From 136a52cdb65eb18acf92cde9533570cb52e2acd5 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Fri, 19 Feb 2021 01:30:05 +0200 Subject: [PATCH] convertStyleToAttrs: fix wrong character class (#1338) --- plugins/convertStyleToAttrs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/convertStyleToAttrs.js b/plugins/convertStyleToAttrs.js index 29d69a777..c0dd0fb6f 100644 --- a/plugins/convertStyleToAttrs.js +++ b/plugins/convertStyleToAttrs.js @@ -29,7 +29,7 @@ var stylingProps = require('./_collections').attrsGroups.presentation, rDeclEnd = '\\s*(?:;\\s*|$)', // Important rule - rImportant = '(\\s*!important(?![-(\w]))?', + rImportant = '(\\s*!important(?![-(\\w]))?', // Final RegExp to parse CSS declarations. regDeclarationBlock = new RegExp(rAttr + ':' + rValue + rImportant + rDeclEnd, 'ig'),