From 62f92f634625531d78a10bfa03b7363d06ff3bab Mon Sep 17 00:00:00 2001 From: hminaee-tc Date: Tue, 30 Jul 2024 09:37:10 -0300 Subject: [PATCH] feat/checkcommitmsg improve pattern --- hooks/check-commit-msg.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/check-commit-msg.sh b/hooks/check-commit-msg.sh index f52f4e8..3922f9d 100755 --- a/hooks/check-commit-msg.sh +++ b/hooks/check-commit-msg.sh @@ -44,7 +44,7 @@ check_branch_name COMMIT_MSG_FILE=$1 # Regular expression for the required commit message format -PATTERN="^(feat|fix|build|breaking|chore|ci|docs|perf|refactor|revert|test)\/[a-zA-Z0-9-]+)(:)? *.+$" +PATTERN="^(feat|fix|build|breaking|chore|ci|docs|perf|refactor|revert|test)\/[a-zA-Z0-9-]+)?(:)? *.+$" # Read the commit message COMMIT_MSG=$(cat "$COMMIT_MSG_FILE")