未验证 提交 d9e06518 编写于 作者: J João Moreno 提交者: GitHub

Merge pull request #57374 from Protolane/enhancement/replace-brackets-too-upon-creating-new-branch

#57373 Replace brackets as well upon creating a branch
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册