Skip to content

Commit

Permalink
[fix #1115] Image resize in % doesn't work.
Browse files Browse the repository at this point in the history
  • Loading branch information
Koooooo-7 committed Apr 13, 2020
1 parent 9e62be9 commit 517f0d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/render/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 '';
Expand Down

0 comments on commit 517f0d7

Please sign in to comment.