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 '';