Skip to content

Commit

Permalink
fix: regex escape operators
Browse files Browse the repository at this point in the history
  • Loading branch information
munja committed Aug 2, 2022
1 parent 0400ba6 commit 3f51b57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .git-hooks/commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ GREEN="\033[1;32m"
commit_message=$(cat "$1")

# abort processing if this is a changelog release commit
if [[ "$commit_message" =~ ^chore(release).* ]]; then
if [[ "$commit_message" =~ ^chore\(release\).* ]]; then
echo "${GREEN} ✔ Changelog release"
exit 0
fi
Expand Down

0 comments on commit 3f51b57

Please sign in to comment.