MCPcopy
hub / github.com/google-labs-code/design.md / isTokenReference

Function isTokenReference

packages/cli/src/linter/model/spec.ts:189–191  ·  view source on GitHub ↗
(raw: string)

Source from the content-addressed store, hash-verified

187 * Check if a string is a token reference ({section.token}).
188 */
189export function isTokenReference(raw: string): boolean {
190 return /^\{[a-zA-Z0-9._-]+\}$/.test(raw);
191}

Callers 4

spec.test.tsFile · 0.85
executeMethod · 0.85
parseTypographyFunction · 0.85
resolveReferenceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…