Skip to content

Commit 0704886

Browse files
committed
Allow digits in project acronym for branch name validation
1 parent 30bf5c4 commit 0704886

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/bash/common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ check_feature_branch() {
7575
return 0
7676
fi
7777

78-
if [[ ! "$branch" =~ ^(feature/([A-Z]+-)?)?[0-9]{3}- ]]; then
78+
if [[ ! "$branch" =~ ^(feature/([A-Z0-9]+-)?)?[0-9]{3}- ]]; then
7979
echo "ERROR: Not on a feature branch. Current branch: $branch" >&2
8080
echo "Feature branches should be named like: feature/001-feature-name or feature/URA-001-feature-name" >&2
8181
return 1

0 commit comments

Comments
 (0)