(token: string)
| 22 | } |
| 23 | |
| 24 | function 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 | |
| 30 | export function parsePatchPathToken(token: string, side: "a" | "b"): string | null { |
| 31 | const pathToken = stripUnquotedPathMetadata(token); |
no outgoing calls
no test coverage detected