Files
searchi/apps/desktop/src/path-display.ts
T
karl 79553ce921
Core CI / core (ubuntu-latest) (push) Failing after 3m29s
Core CI / core (macos-latest) (push) Canceled after 0s
Core CI / core (windows-latest) (push) Canceled after 0s
Core CI / desktop (ubuntu-latest) (push) Successful in 7m23s
Core CI / desktop (macos-latest) (push) Canceled after 0s
Core CI / desktop (windows-latest) (push) Canceled after 0s
feat: highlight search matches and document the working UI
2026-10-12 19:57:34 +02:00

7 lines
278 B
TypeScript

/** Explorer-style labels; callers retain the original path for file operations. */
export function displayPath(path: string) {
if (path.startsWith("\\\\?\\UNC\\")) return "\\\\" + path.slice(8);
if (/^\\\\\?\\[A-Za-z]:\\/.test(path)) return path.slice(4);
return path;
}