Skip to content

Commit

Permalink
fix: #1211 adding wrong characters
Browse files Browse the repository at this point in the history
  • Loading branch information
JiHong88 committed Apr 9, 2023
1 parent fccf99c commit 0e36da1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -5262,7 +5262,7 @@ export default function (context, pluginCallButtons, plugins, lang, options, _re
if (style) {
const allowedStyle = [];
for (let i = 0, len = style.length, r; i < len; i++) {
r = style[i].match(/([a-zA-Z0-9-]+)(:)([^:]+$)/);
r = style[i].match(/([a-zA-Z0-9-]+)(:)([^"]+)/);
if (r && !/inherit|initial|revert|unset/i.test(r[3])) {
const k = util.kebabToCamelCase(r[1].trim());
const v = this.wwComputedStyle[k].replace(/"/g, '');
Expand Down

0 comments on commit 0e36da1

Please sign in to comment.