diff --git a/src/core/render/compiler.js b/src/core/render/compiler.js index 4bf577344..7b71aed84 100644 --- a/src/core/render/compiler.js +++ b/src/core/render/compiler.js @@ -14,7 +14,8 @@ export function getAndRemoveConfig(str = '') { if (str) { str = str - .replace(/^'|'$/, '') + .replace(/^'/, '') + .replace(/'$/, '') .replace(/:([\w-]+)=?([\w-]+)?/g, (m, key, value) => { config[key] = (value && value.replace(/"/g, '')) || true return '' diff --git a/src/core/render/embed.js b/src/core/render/embed.js index 85e20a07f..ea294ed71 100644 --- a/src/core/render/embed.js +++ b/src/core/render/embed.js @@ -33,7 +33,7 @@ function walkFetchEmbed({embedTokens, compile, fetch}, cb) { ] embedToken.links = {} } else { - embedToken = [{type: 'html', text: text}] + embedToken = [{type: 'html', text}] embedToken.links = {} } }