Skip to content

Commit 4faf037

Browse files
committed
CCM-9691 Fix branch naming
1 parent e80d0a1 commit 4faf037

File tree

1 file changed

+1
-1
lines changed
  • infrastructure/terraform/components/branch

1 file changed

+1
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
locals {
22
root_domain_name = "${var.environment}.${local.app.amplify["domain_name"]}"
3-
normalised_branch_name = lower(substr(join("", regexall("[a-zA-Z0-9-]+", var.branch_name)), 0, 25))
3+
normalised_branch_name = trimsuffix(lower(substr(join("", regexall("[a-zA-Z0-9-]+", var.branch_name)), 0, 25)),"-")
44
}

0 commit comments

Comments
 (0)