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

Function isPascalCase

src/resolution/frameworks/react.ts:2374–2376  ·  view source on GitHub ↗

* Check if string is PascalCase

(str: string)

Source from the content-addressed store, hash-verified

2372 * Check if string is PascalCase
2373 */
2374function isPascalCase(str: string): boolean {
2375 return /^[A-Z][a-zA-Z0-9]*$/.test(str);
2376}
2377
2378/**
2379 * 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