# [PATCH] Fix regex pattern in commit-msg

1 messages from 2006-08-13 to 2006-08-13. Participants: Luben Tuikov.
Thread: https://gitlist.dev/t/5223

## Luben Tuikov, 2006-08-13 07:34

Subject: [PATCH] Fix regex pattern in commit-msg
Message-ID: <20060813073437.1889.qmail@web31805.mail.mud.yahoo.com>
URL: https://gitlist.dev/e/20060813073437.1889.qmail%40web31805.mail.mud.yahoo.com

```
Between the count and the line output, some
uniq(1) versions put a TAB character, not a space.
Make sure both are handled.

Signed-off-by: Luben Tuikov <ltuikov@yahoo.com>
---
 templates/hooks--commit-msg |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/templates/hooks--commit-msg b/templates/hooks--commit-msg
index 643822d..23617f3 100644
--- a/templates/hooks--commit-msg
+++ b/templates/hooks--commit-msg
@@ -11,4 +11,4 @@ # To enable this hook, make this file ex
 # This example catches duplicate Signed-off-by lines.
 
 test "" = "$(grep '^Signed-off-by: ' "$1" |
-	 sort | uniq -c | sed -e '/^[ 	]*1 /d')"
+	 sort | uniq -c | sed -e '/^[ 	]*1[ 	]/d')"
-- 
1.4.2.rc3.gb9227

```
