From b82405a8c0c2326d90715a42005c9df8e059fe76 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Fri, 21 Oct 2022 00:49:17 +0200 Subject: [PATCH] meta:commit-msg: Allow all characters in prefix There is no real reason for a restriction. Also merge the two character groups. --- meta/git/hooks/commit-msg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/git/hooks/commit-msg b/meta/git/hooks/commit-msg index ede0a11..a25f047 100755 --- a/meta/git/hooks/commit-msg +++ b/meta/git/hooks/commit-msg @@ -43,8 +43,8 @@ body="$( # error messages are printed for the different 'levels' of the pattern. declare -a pats msg pats=( - "^([-_,*(){}./a-zA-Z0-9]+:)+ " - "([\`'\"]|[A-Z])" + "^(.+:)+ " + "([A-Z\`'\"])" ".*[^.]$" ) msg=(