(path: string)
| 243 | } |
| 244 | |
| 245 | export function normalizeVaultFilePath(path: string): string { |
| 246 | const normalized = normalizePath(path).replace(/\/{2,}/g, "/"); |
| 247 | return normalized.replace(/^\/+/, ""); |
| 248 | } |
| 249 | |
| 250 | export function areSameVaultFilePath(a: string, b: string): boolean { |
| 251 | return normalizeVaultFilePath(a) === normalizeVaultFilePath(b); |
no test coverage detected