Skip to content

Commit

Permalink
fix: handle raw mustache expressions over multiple lines
Browse files Browse the repository at this point in the history
  • Loading branch information
NGPixel committed Mar 26, 2021
1 parent c57c9d9 commit d75c553
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/modules/rendering/html-core/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ module.exports = {
const list = $(node).contents().toArray()
list.forEach(item => {
if (item.type === 'text') {
const rawText = $(item).text()
const rawText = $(item).text().replace(/\r?\n|\r/g, '')
if (mustacheRegExp.test(rawText)) {
$(item).parent().attr('v-pre', true)
}
Expand Down

0 comments on commit d75c553

Please sign in to comment.