Skip to content

Commit 42143e9

Browse files
authored
CCM-9691: Fix amplify branch name (#421)
1 parent 33fdc97 commit 42143e9

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)