mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-18 05:50:43 -07:00
fix assign tag regex to include linebreaks in value
This commit is contained in:
+1
-1
@@ -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', {
|
||||
|
||||
Reference in New Issue
Block a user