mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-18 14:31:30 +03:00
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:
parent
8db8ec5641
commit
63ee99b647
@ -1,3 +1,3 @@
|
||||
export function normalizeBranchName(value: string) {
|
||||
return value.replace(/[^0-9a-z/_.]+/g, '-');
|
||||
return value.replace(/[^A-Za-z0-9_/.#]+/g, '-');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user