MCPcopy Index your code
hub / github.com/github/docs / tokenize

Function tokenize

script/helpers/get-liquid-conditionals.js:6–9  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

4import { Tokenizer } from 'liquidjs'
5
6const tokenize = (str) => {
7 const tokenizer = new Tokenizer(str)
8 return tokenizer.readTopLevelTokens()
9}
10
11// Return an array of just the conditional strings.
12function getLiquidConditionals(str, tagNames) {

Callers 2

getLiquidConditionalsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected