From 65451efd4bfdb4f3b0d8c2ca9005e7643e71cadd Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Fri, 14 Jun 2024 15:02:13 +0200 Subject: [PATCH] dev: Improve comment check file name regex Co-authored-by: Taeer Bar-Yam (cherry picked from commit b401e52eba931374b782d83360411b197a8d59da) --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 237a4bf..ea9ae1f 100644 --- a/flake.nix +++ b/flake.nix @@ -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