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
This commit is contained in:
Caleb Owens 2024-05-03 20:09:22 +01:00
parent 8db8ec5641
commit 63ee99b647

View File

@ -1,3 +1,3 @@
export function normalizeBranchName(value: string) {
return value.replace(/[^0-9a-z/_.]+/g, '-');
return value.replace(/[^A-Za-z0-9_/.#]+/g, '-');
}