From f626253b23de45412865c07fd076ff95d4cd77a7 Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Wed, 19 Apr 2023 09:19:08 -0700 Subject: [PATCH] Fix regex to match a literal dot before extension Also simplifies the optional a match a bit. Fixes #15 --- .pre-commit-hooks.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 2bfb7dc..2d3ee91 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -4,4 +4,4 @@ description: Checks that docker compose files are valid language: script entry: compose-check.sh - files: (docker-)?compose.y[a]{0,1}ml$ + files: (docker-)?compose\.ya?ml$