mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-28 04:23:32 +01:00
Merge pull request #57374 from Protolane/enhancement/replace-brackets-too-upon-creating-new-branch
#57373 Replace brackets as well upon creating a branch
This commit is contained in:
@@ -1273,7 +1273,7 @@ export class CommandCenter {
|
||||
return;
|
||||
}
|
||||
|
||||
const name = result.replace(/^\.|\/\.|\.\.|~|\^|:|\/$|\.lock$|\.lock\/|\\|\*|\s|^\s*$|\.$/g, '-');
|
||||
const name = result.replace(/^\.|\/\.|\.\.|~|\^|:|\/$|\.lock$|\.lock\/|\\|\*|\s|^\s*$|\.|\[|\]|$/g, '-');
|
||||
await repository.branch(name, true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user