diff options
-rwxr-xr-x | git-hooks/sanitize-commit | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-hooks/sanitize-commit b/git-hooks/sanitize-commit index 5d97553..72797e8 100755 --- a/git-hooks/sanitize-commit +++ b/git-hooks/sanitize-commit @@ -437,7 +437,7 @@ while (<MSG>) { if (/\bQT[A-Z]+-\d+\b/) { complain_cln("Bug reference in summary", "log"); } - if (/\.$/) { + if (/(?<!etc)\.$/) { complain_cln("Summary ends with period", "log"); } # Detect wrong tense, but exclude cases like 'Speed up ...' |