Skip to main content

normalize_vault_path

Function normalize_vault_path 

Source
pub fn normalize_vault_path(value: &str) -> String
Expand description

Normalizes a vault path: backslashes to forward slashes, NFD normalization.

Matches the TypeScript normalizeTalonVaultPath behavior.

ยงExamples

use talon_core::text::normalize_vault_path;

assert_eq!(normalize_vault_path("notes\\hello.md"), "notes/hello.md");
assert_eq!(normalize_vault_path("notes/hello.md"), "notes/hello.md");