Skip to content

Commit

Permalink
fix(compiler): extra quotes for codeblock
Browse files Browse the repository at this point in the history
  • Loading branch information
QingWei-Li committed Oct 31, 2018
1 parent 22ab7df commit 4f588e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/core/render/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ''
Expand Down
2 changes: 1 addition & 1 deletion src/core/render/embed.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function walkFetchEmbed({embedTokens, compile, fetch}, cb) {
]
embedToken.links = {}
} else {
embedToken = [{type: 'html', text: text}]
embedToken = [{type: 'html', text}]
embedToken.links = {}
}
}
Expand Down

0 comments on commit 4f588e0

Please sign in to comment.