(p: string)
| 73 | // Pierre's filename regexes, code-nav's extractChangedFiles) expect git's |
| 74 | // exact shape; over-quoting makes them misparse or silently drop files. |
| 75 | function needsGitQuoting(p: string): boolean { |
| 76 | return /["\\\u0000-\u001F]/.test(p); |
| 77 | } |
| 78 | function headerPathToken(side: "a" | "b", p: string): string { |
| 79 | const full = `${side}/${p}`; |
| 80 | return needsGitQuoting(p) ? JSON.stringify(full) : full; |
no outgoing calls
no test coverage detected