Skip to content

Commit

Permalink
Fix escaping chars in the branch name script (#2033)
Browse files Browse the repository at this point in the history
Quotes were not properly escaped.

# Ticket

<ticket>
COIOS-870
</ticket>
  • Loading branch information
erenbesel authored Mar 3, 2025
1 parent 676697d commit 2a8ce5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Scripts/validate-branch-name.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ local_branch="$(git rev-parse --abbrev-ref HEAD)"

valid_branch_regex="^(feature|fix|chore|improvement|release)\/[a-z0-9._-]+$"

message="Invalid branch name. Branch names should follow this format: $valid_branch_regex. Your commit will be rejected. Rename your branch to a valid name (e.g., 'feature/payto-base', 'fix/card-number-validation`, 'release/5.5.5') and try again."
message="Invalid branch name. Branch names should follow this format: $valid_branch_regex. Rename your branch to a valid name (e.g., \"feature/payto-base\", \"fix/card-number-validation\", \"release/5.5.5\") and try again."

if [[ ! $local_branch =~ $valid_branch_regex ]]
then
Expand Down

0 comments on commit 2a8ce5e

Please sign in to comment.