chore: fix linters
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 17c6b27..761474e 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -5,8 +5,9 @@
     rev: v4.3.0
     hooks:
       - id: end-of-file-fixer
+        exclude: ^images/.*/patches/.*\.patch$
       - id: trailing-whitespace
-        exclude: ^images/.*/patches/.*/.*\.patch$
+        exclude: ^images/.*/patches/.*\.patch$
 
   - repo: https://github.com/compilerla/conventional-pre-commit
     rev: v2.0.0