diff --git a/git-hooks/commit-msg b/git-hooks/commit-msg index db002aa..f0c2fea 100755 --- a/git-hooks/commit-msg +++ b/git-hooks/commit-msg @@ -14,7 +14,7 @@ COMMIT_MSG_FILE="$1" COMMIT_MSG=$(head -1 "$COMMIT_MSG_FILE") TYPES="feat|fix|docs|chore|refactor|test|style|perf|ci" -PATTERN="^(${TYPES})(\([a-z0-9]([a-z0-9-]*[a-z0-9])?\))?!?: [a-z].{1,}" +PATTERN="^(${TYPES})(\([a-z0-9]([a-z0-9-]*[a-z0-9])?\))?!?: [a-z]([^.]|.*[^.])?$" error() { printf '\n[commit-msg] ERROR: %s\n\n' "$*" >&2