Skip to content

Commit 5d20d34

Browse files
authored
fixed RegEx rule to now allow capital characters (#1)
1 parent d504b1c commit 5d20d34

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

githooks/branch_validate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ LC_ALL=C
33

44
local_branch="$(git rev-parse --abbrev-ref HEAD)"
55

6-
valid_branch_regex="^(bug|chore|devops|feat|fix|hotfix|release)\/[a-z0-9._-]+$"
6+
valid_branch_regex="^(bug|chore|devops|feat|fix|hotfix|release)\/[a-zA-Z0-9._-]+$"
77

88
message="Commit failed. Branch names in this project must adhere to this contract: $valid_branch_regex. Please rename your branch and try again."
99

0 commit comments

Comments
 (0)