pre-commit / pre-commit-hooks

Some out-of-the-box hooks for pre-commit
MIT License
5.2k stars 694 forks source link

Extend check for illegal Windows filenames #1049

Open Jeffrey-Lim opened 4 months ago

Jeffrey-Lim commented 4 months ago

Fixes #1048. It took some time to get it right, but I'm pretty sure this covers every possible illegal file name now.

For reference, the following names are illegal on Windows: