From 63ee99b647df0965efd868e1d20c1ec38a95e5f8 Mon Sep 17 00:00:00 2001 From: Caleb Owens Date: Fri, 3 May 2024 20:09:22 +0100 Subject: [PATCH] Update the normalizeBranchName function to match rust Before, uppercase letters and hashes were missing from the regex. I've now coppied the regex from the rust code so they are now identical --- app/src/lib/utils/branch.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/lib/utils/branch.ts b/app/src/lib/utils/branch.ts index eb03a7df0..9a226c3f5 100644 --- a/app/src/lib/utils/branch.ts +++ b/app/src/lib/utils/branch.ts @@ -1,3 +1,3 @@ export function normalizeBranchName(value: string) { - return value.replace(/[^0-9a-z/_.]+/g, '-'); + return value.replace(/[^A-Za-z0-9_/.#]+/g, '-'); }