dev: Improve comment check file name regex

Co-authored-by: Taeer Bar-Yam <Radvendii@users.noreply.github.com>
(cherry picked from commit b401e52eba931374b782d83360411b197a8d59da)
This commit is contained in:
Robert Hensing 2024-06-14 15:02:13 +02:00 committed by Robert Hensing
parent 6b438e5398
commit 65451efd4b

View file

@ -41,7 +41,7 @@
# without nightly, and it might do too much.
pre-commit.settings.hooks.rust-doc-comments = {
enable = true;
files = ".*.rs$";
files = "\\.rs$";
entry = "${pkgs.writeScript "rust-doc-comments" ''
#!${pkgs.runtimeShell}
set -uxo pipefail