fix(conventi): fix conventi.sh function get_commit_body()
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Rick Barenthin 2022-06-02 00:34:03 +02:00
parent 74e622a5e0
commit dc2e6446d5

View File

@ -170,7 +170,7 @@ get_commit_footer() {
}
get_commit_body() {
pattern=$(get_commit_footer "$1" | head -n 1)
pattern=$(get_commit_footer "$1" | head -n 1 | sed -e 's/[]\/$*.^[]/\\&/g')
if [ -n "$pattern" ]; then
echo "$1" | sed -e "/$pattern/,\$d"
else