Skip to content

Commit

Permalink
TEST-1234 Refactor: Remove unnecessary sed command Remove the third `…
Browse files Browse the repository at this point in the history
…sed` command from the commit message cleanup process, as it is redundant.
  • Loading branch information
wesleyscholl committed Sep 23, 2024
1 parent 18e869b commit 6c22010
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions git-commit-push-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ commit_message=$(curl -s \

echo $commit_message

# Clean up commit message - remove #, ```, and any other characters other than A-Z, a-z, 0-9, spaces, and new lines
commit_message=$(echo "$commit_message" | sed 's/#//g' | sed 's/```//g' | sed 's/[^A-Za-z0-9 \n]//g')
# Clean up commit message - remove #, ```
commit_message=$(echo $commit_message | sed 's/#//g' | sed 's/```//g')

echo $commit_message

Expand Down

0 comments on commit 6c22010

Please sign in to comment.