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

Function tokenize

script/helpers/remove-liquid-statements.js:13–16  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

11const removeConditionals = 'removeConditionals'
12
13const tokenize = (str) => {
14 const tokenizer = new Tokenizer(str)
15 return tokenizer.readTopLevelTokens()
16}
17// This module is used by script/enterprise-server-deprecations/remove-version-markup.js to remove
18// and update Liquid conditionals when a GHES release is being deprecated. It is also used by
19// tests/content/remove-liquid-statements.js.

Callers 1

removeLiquidStatementsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected