File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ read_commit_message() {
86
86
shopt -u extglob
87
87
88
88
# ignore comments and indented lines
89
- [[ $REPLY =~ ^(# |[ ][ ] ) ]]
89
+ [[ $REPLY =~ ^(# | ) ]]
90
90
test $? -eq 0 || COMMIT_MSG_LINES+=(" $REPLY " )
91
91
92
92
[[ $REPLY =~ " # ------------------------ >8 ------------------------" ]]
@@ -208,7 +208,7 @@ build_commit_trailer_regex() {
208
208
TRAILER_REGEX+=" $each |"
209
209
done
210
210
# Remove the trailing pipe, then add a separator and blank space pattern.
211
- TRAILER_REGEX=" ${TRAILER_REGEX% |} )[$separators ][[:blank:]]*"
211
+ TRAILER_REGEX=" ${TRAILER_REGEX% |} )[$separators ][[:blank:]]*) "
212
212
fi
213
213
214
214
# Append standalone trailer keys.
@@ -483,7 +483,8 @@ validate_commit_message() {
483
483
484
484
MSG_FOR_SPELLCHECK_LINE_FINDING=$( echo " $FULL_COMMIT_MSG_WITH_SPACE " | sed -E \
485
485
-e " s/(['\" ][^'\" ]*['\" ])//g" \
486
- -e " s/\bcommit[[:space:]]+[0-9a-fA-F]{7,40}\b/commit/g" )
486
+ -e " s/\bcommit[[:space:]]+[0-9a-fA-F]{7,40}\b/commit/g" \
487
+ -e " /^ /d" )
487
488
MSG_FOR_SPELLCHECK=$( echo " $MSG_FOR_SPELLCHECK_LINE_FINDING " | sed ' /^[[:space:]]*$/d' )
488
489
489
490
# Use aspell to list misspelled words according to American English, ignoring quoted text.
You can’t perform that action at this time.
0 commit comments