Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
18
function
isValidIdentifier(name: string): boolean {
19
return
/^[$A-Z_a-z][$\w]*$/.test(name)
20
}
21
22
function
walkFragment(
23
fragment: SvelteNode | null | undefined,
Callers
1
extractMessageComponent
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected