MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / isPascalCase

Function isPascalCase

src/resolution/frameworks/react.ts:2396–2398  ·  view source on GitHub ↗

* Check if string is PascalCase

(str: string)

Source from the content-addressed store, hash-verified

2394 * Check if string is PascalCase
2395 */
2396function isPascalCase(str: string): boolean {
2397 return /^[A-Z][a-zA-Z0-9]*$/.test(str);
2398}
2399
2400/**
2401 * Check if name is a built-in type

Callers 5

resolveFunction · 0.70
lazyModulesFunction · 0.70
lazyValueModulesFunction · 0.70
handedComponentFunction · 0.70
wrappedComponentNameFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected