obsidianmd / obsidian-api

Type definitions for the latest Obsidian API.
https://docs.obsidian.md
MIT License
1.65k stars 192 forks source link

Bug: the normalizePath function Unable to completely filter illegal characters #146

Closed flyer1b closed 6 months ago

flyer1b commented 6 months ago

Steps to reproduce:

lishid commented 6 months ago

normalizePath isn't meant to strip or clean the path itself; its purpose is to normalize the path components to remove duplicate slashes and convert all slashes to forward slashes. You should strip/clean the filenames before sending it through.