mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-19 06:20:38 -07:00
refactor: Tag class support in registerTag()
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
import { IDENTIFIER, TYPES } from '../util/character'
|
||||
import { Trie } from '../util/operator-trie'
|
||||
import { Trie, TrieNode, IDENTIFIER, TYPES } from '../util'
|
||||
|
||||
export function matchOperator (str: string, begin: number, trie: Trie, end = str.length) {
|
||||
let node = trie
|
||||
let node: TrieNode = trie
|
||||
let i = begin
|
||||
let info
|
||||
while (node[str[i]] && i < end) {
|
||||
|
||||
Reference in New Issue
Block a user