From 5f6409997440f6b85e36b1c3b1881fdfac7d80a0 Mon Sep 17 00:00:00 2001 From: Hanks10100 Date: Wed, 9 Nov 2016 20:58:41 +0800 Subject: [PATCH] * [all] fix the regex of commit message --- bin/commit-msg.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/commit-msg.sh b/bin/commit-msg.sh index de16c9966e..a7f8884c51 100755 --- a/bin/commit-msg.sh +++ b/bin/commit-msg.sh @@ -1,12 +1,12 @@ #!/usr/bin/env bash # Validate commit log -commit_regex='^Merge.+|[+*-] \[(android|ios|jsfm|html5|component|doc|website|example|test|all)\] [^\n]{1,50}' +commit_regex='^Merge.+|[+*-] \[(android|ios|jsfm|html5|component|doc|website|example|test|all)\] .{1,50}' if ! grep -iqE "$commit_regex" "$1"; then echo "ERROR: commit log format is not correct!" echo "See https://github.com/alibaba/weex/blob/dev/CONTRIBUTING.md#commit-log" exit 1 fi -# FIXME no effect after editor (like vim) exits +# FIXME no effect after editor (like vim) exits # ISSUE merge or conflict