mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-16 04:40:39 -07:00
fix: raw block not ignoring {% characters, fixes #263
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { VARIABLE } from '../util/character'
|
||||
import { IDENTIFIER } from '../util/character'
|
||||
|
||||
const trie = {
|
||||
a: { n: { d: { end: true, needBoundary: true } } },
|
||||
@@ -19,6 +19,6 @@ export function matchOperator (str: string, begin: number, end = str.length) {
|
||||
if (node['end']) info = node
|
||||
}
|
||||
if (!info) return -1
|
||||
if (info['needBoundary'] && str.charCodeAt(i) & VARIABLE) return -1
|
||||
if (info['needBoundary'] && str.charCodeAt(i) & IDENTIFIER) return -1
|
||||
return i
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user