Skip to content

fix #1 - sanitize alias targets for file system compatibility#2

Open
MrVauxs wants to merge 4 commits into
quartz-community:mainfrom
MrVauxs:main
Open

fix #1 - sanitize alias targets for file system compatibility#2
MrVauxs wants to merge 4 commits into
quartz-community:mainfrom
MrVauxs:main

Conversation

@MrVauxs

@MrVauxs MrVauxs commented May 25, 2026

Copy link
Copy Markdown

Fixes #1, LGTM and confirmed it manually on a real life repo that I am migrating from Quartz 4.

Introduces sanitizeFilename to replace invalid characters (like <, >, :, ", /, \, |, ?, *) with hyphens and truncate long filenames. This prevents errors when generating redirect files for aliases that contain characters incompatible with certain file systems (e.g., Windows).

kilo-code-bot Bot and others added 4 commits May 25, 2026 18:19
Introduces `sanitizeFilename` to replace invalid characters (like `<`, `>`, `:`, `"`, `/`, `\`, `|`, `?`, `*`) with hyphens and truncate long filenames. This prevents errors when generating redirect files for aliases that contain characters incompatible with certain file systems (e.g., Windows).
…5c3-083b5219c980

fix(emitter): sanitize aliases with illegal filesystem characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fails for aliases that have illegal characters

1 participant