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

Function stripUnquotedPathMetadata

packages/shared/diff-paths.ts:24–28  ·  view source on GitHub ↗
(token: string)

Source from the content-addressed store, hash-verified

22}
23
24function stripUnquotedPathMetadata(token: string): string {
25 if (token.startsWith('"')) return token;
26 const tabIndex = token.indexOf("\t");
27 return tabIndex === -1 ? token : token.slice(0, tabIndex);
28}
29
30export function parsePatchPathToken(token: string, side: "a" | "b"): string | null {
31 const pathToken = stripUnquotedPathMetadata(token);

Callers 1

parsePatchPathTokenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected