fix assign tag regex to include linebreaks in value

This commit is contained in:
Andrew Barclay
2018-11-22 09:31:22 +08:00
committed by Jun Yang
parent d65ea14b9f
commit 2055258193
9 changed files with 1118 additions and 1134 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ import {identifier} from '../lexical.js'
import {create} from '../util/underscore.js'
export default function (liquid, Liquid) {
const re = new RegExp(`(${identifier.source})\\s*=(.*)`)
const re = new RegExp(`(${identifier.source})\\s*=([^]*)`)
const {AssignScope} = Liquid.Types
liquid.registerTag('assign', {