MCPcopy
hub / github.com/colinhacks/zod / normalizeTabValue

Function normalizeTabValue

packages/docs/content/api.test.ts:229–231  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

227}
228
229function normalizeTabValue(value: string): string {
230 return value.toLowerCase().replaceAll(/[\s_-]/g, "");
231}
232
233function getEditDistance(left: string, right: string): number {
234 let previousRow = Array.from({ length: right.length + 1 }, (_, index) => index);

Callers 1

isLikelyTabValueFunction · 0.85

Calls 1

toLowerCaseMethod · 0.65

Tested by

no test coverage detected