Skip to content

fix: re-check reserved names after Windows whitespace strip - #72

Closed
santhreal wants to merge 1 commit into
thombashi:masterfrom
santhreal:fix/sanitize-reserved-after-strip
Closed

santhreal wants to merge 1 commit into
thombashi:masterfrom
santhreal:fix/sanitize-reserved-after-strip

Conversation

@santhreal

Copy link
Copy Markdown

sanitize_filename/sanitize_filepath hits logic: reserved after strip when leading spaces + Windows reserved AUX/NUL. This PR fixes the regression with a focused test covering the case. RED-GREEN proved; awaiting thermo

sanitize_filename stripped leading/trailing spaces on Windows
before reserved-name handling, so inputs like " AUX" became
"AUX" instead of "AUX_".
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.

1 participant