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 #1048

Open Jeffrey-Lim opened 4 months ago

Jeffrey-Lim commented 4 months ago

The check-illegal-windows-names hook does not check for every illegal filename on Windows. For example, filenames with "double" quotes are still allowed.

Update the regex so that all illegal filenames get detected. Illegal Windows filenames are defined here.