mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-18 05:50:43 -07:00
fix: operator boundary not correctly recognized, fixes #342
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { Operators } from '../render/operator'
|
||||
import { IDENTIFIER, TYPES } from '../util/character'
|
||||
|
||||
export interface Trie {
|
||||
[key: string]: any;
|
||||
@@ -13,7 +14,7 @@ export function createTrie (operators: Operators): Trie {
|
||||
const c = name[i]
|
||||
node[c] = node[c] || {}
|
||||
|
||||
if (i === name.length - 1 && c !== '=') {
|
||||
if (i === name.length - 1 && (TYPES[name.charCodeAt(i)] & IDENTIFIER)) {
|
||||
node[c].needBoundary = true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user