From 517f0d7dead27481da7eb0707217cf28ffd8b6f4 Mon Sep 17 00:00:00 2001 From: koooooo-7 <369491420@qq.com> Date: Mon, 13 Apr 2020 23:04:34 +0800 Subject: [PATCH] [fix #1115] Image resize in % doesn't work. --- src/core/render/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/render/utils.js b/src/core/render/utils.js index 2b7f0e052..6f2d14fa3 100644 --- a/src/core/render/utils.js +++ b/src/core/render/utils.js @@ -5,7 +5,7 @@ export function getAndRemoveConfig(str = '') { str = str .replace(/^'/, '') .replace(/'$/, '') - .replace(/(?:^|\s):([\w-]+:?)=?([\w-]+)?/g, (m, key, value) => { + .replace(/(?:^|\s):([\w-]+:?)=?([\w-%]+)?/g, (m, key, value) => { if (key.indexOf(':') === -1) { config[key] = (value && value.replace(/"/g, '')) || true; return '';