Skip to content

Commit 4f588e0

Browse files
committed
fix(compiler): extra quotes for codeblock
1 parent 22ab7df commit 4f588e0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/core/render/compiler.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ export function getAndRemoveConfig(str = '') {
1414

1515
if (str) {
1616
str = str
17-
.replace(/^'|'$/, '')
17+
.replace(/^'/, '')
18+
.replace(/'$/, '')
1819
.replace(/:([\w-]+)=?([\w-]+)?/g, (m, key, value) => {
1920
config[key] = (value && value.replace(/"/g, '')) || true
2021
return ''

src/core/render/embed.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function walkFetchEmbed({embedTokens, compile, fetch}, cb) {
3333
]
3434
embedToken.links = {}
3535
} else {
36-
embedToken = [{type: 'html', text: text}]
36+
embedToken = [{type: 'html', text}]
3737
embedToken.links = {}
3838
}
3939
}

0 commit comments

Comments
 (0)