MCPcopy Create free account
hub / github.com/formatjs/formatjs / isValidIdentifier

Function isValidIdentifier

packages/cli-lib/svelte_extractor.ts:18–20  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

16])
17
18function isValidIdentifier(name: string): boolean {
19 return /^[$A-Z_a-z][$\w]*$/.test(name)
20}
21
22function walkFragment(
23 fragment: SvelteNode | null | undefined,

Callers 1

extractMessageComponentFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected