(p: string)
| 743 | // callers rely on ("a//b" and "a/b" denote one path). (Real Obsidian also trims |
| 744 | // edge slashes and NFC-normalizes; those are not modelled here.) |
| 745 | export function normalizePath(p: string): string { |
| 746 | if (typeof p !== 'string') return '' as unknown as string; |
| 747 | return p.replace(/\\/g, '/').replace(/\/+/g, '/'); |
| 748 | } |
| 749 | |
| 750 | // Minimal debounce for tests: execute immediately. |
| 751 | export function debounce<T extends (...args: any[]) => any>( |
no outgoing calls
no test coverage detected