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

Function normalizeSeparators

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

Source from the content-addressed store, hash-verified

52 | { kind: "unavailable"; input: string };
53
54function normalizeSeparators(input: string): string {
55 return input.replace(/\\/g, "/");
56}
57
58function stripTrailingSlashes(input: string): string {
59 return input.replace(/\/+$/, "");

Callers 4

normalizeComparablePathFunction · 0.85
getLowercaseBasenameFunction · 0.85
resolveCodeFileFunction · 0.85
resolveMarkdownFileCoreFunction · 0.85

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected