MCPcopy Create free account
hub / github.com/backnotprop/plannotator / getLowercaseBasename

Function getLowercaseBasename

packages/shared/resolve-file.ts:160–163  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

158}
159
160function getLowercaseBasename(input: string): string {
161 const normalizedInput = normalizeSeparators(input);
162 return normalizedInput.split("/").pop()!.toLowerCase();
163}
164
165function getLookupKey(input: string, isBareFilename: boolean): string {
166 return isBareFilename ? getLowercaseBasename(input) : input.toLowerCase();

Callers 1

getLookupKeyFunction · 0.85

Calls 1

normalizeSeparatorsFunction · 0.85

Tested by

no test coverage detected