meta:hooks:commit-msg: Allow dots and slashes

Allow dots and slashes in the program specification in the subject.
This commit is contained in:
2020-10-26 15:04:20 +01:00
parent 0db8155002
commit 67c30e9842

View File

@@ -23,7 +23,7 @@ body="$(tail +2 "$1" | grep -v "^#")"
# error messages are printed for the different 'levels' of the pattern.
declare -a pats msg
pats=(
"^([-_,*(){}a-zA-Z0-9]+:)+ "
"^([-_,*(){}./a-zA-Z0-9]+:)+ "
"[A-Z]"
".*[^.]$"
)