MCPcopy Create free account
hub / github.com/chhoumann/quickadd / isSupportedCaseStyle

Function isSupportedCaseStyle

src/utils/caseTransform.ts:46–48  ·  view source on GitHub ↗
(style?: string)

Source from the content-addressed store, hash-verified

44/** Returns true when `style` resolves to a known case style; false (with a
45 * non-empty input) means the author typo'd it and it will be ignored. */
46export function isSupportedCaseStyle(style?: string): boolean {
47 return normalizeStyle(style) !== null;
48}
49
50function upperFirstLowerRest(word: string): string {
51 if (!word) return word;

Callers 2

parseValueTokenFunction · 0.90

Calls 1

normalizeStyleFunction · 0.85

Tested by

no test coverage detected