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

Function normalizeFolder

src/utils/fileSyntax.ts:48–50  ·  view source on GitHub ↗

Strip leading/trailing slashes, matching EnhancedFieldSuggestionFileFilter.

(path: string)

Source from the content-addressed store, hash-verified

46
47/** Strip leading/trailing slashes, matching EnhancedFieldSuggestionFileFilter. */
48function normalizeFolder(path: string): string {
49 return path.replace(/^\/+|\/+$/g, "");
50}
51
52/**
53 * Serialize a filter list into a delimiter-safe, order-insensitive token. A

Callers 1

buildFileScopeSignatureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected