We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3d4a0b commit bb2d2beCopy full SHA for bb2d2be
scripts/commit-msg.hook
@@ -322,7 +322,8 @@ validate_commit_message() {
322
# 12. Avoid abusive language in commit message content
323
# ------------------------------------------------------------------------------
324
325
- FULL_COMMIT_MSG=$(sed '/^#/d;/^[[:space:]]*$/d;/^[[:space:]]*Change-Id:/d' "$COMMIT_MSG_FILE")
+ FULL_COMMIT_MSG=$(sed '/^#/d;/^[[:space:]]*$/d;/^[[:space:]]*Change-Id:/d' "$COMMIT_MSG_FILE" | \
326
+ sed -E "s@${URL_REGEX#^}@@g")
327
# Extended list of abusive words (case-insensitive).
328
# Adjust the list as needed.
329
ABUSIVE_WORDS_REGEX='\b(fuck|fucking|dick|shit|bitch|asshole|cunt|motherfucker|damn|crap|dumbass|piss)\b'
0 commit comments