pre-commit / pre-commit-hooks

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

Extend check for illegal Windows filenames #1048

Closed Jeffrey-Lim closed 1 month ago

Jeffrey-Lim commented 7 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.