Skip to content

Commit

Permalink
Merge pull request #57374 from Protolane/enhancement/replace-brackets…
Browse files Browse the repository at this point in the history
…-too-upon-creating-new-branch

#57373 Replace brackets as well upon creating a branch
  • Loading branch information
joaomoreno committed Sep 13, 2018
2 parents a5c6208 + 48ef510 commit d9e0651
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/git/src/commands.ts
Expand Up @@ -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);
}

Expand Down

0 comments on commit d9e0651

Please sign in to comment.