Same file, with either side repo-relative and the other absolute.
(a, b)
| 791 | const normPath = (p) => String(p ?? '').replace(/\\/g, '/').replace(/^\.\//, ''); |
| 792 | /** Same file, with either side repo-relative and the other absolute. */ |
| 793 | function samePath(a, b) { |
| 794 | const x = normPath(a), y = normPath(b); |
| 795 | if (!x || !y) return false; |
| 796 | return x === y || x.endsWith('/' + y) || y.endsWith('/' + x); |
| 797 | } |
| 798 | |
| 799 | /** |
| 800 | * The files whose SOURCE an explore response returned — its per-file sections, |