Merge pull request #58825 from oneslash/58816

check only dot at the end of a branch
This commit is contained in:
João Moreno
2018-09-18 10:29:47 +02:00
committed by GitHub

View File

@@ -1307,7 +1307,7 @@ export class CommandCenter {
return name;
}
return name.replace(/^\.|\/\.|\.\.|~|\^|:|\/$|\.lock$|\.lock\/|\\|\*|\s|^\s*$|\.|\[|\]$/g, branchWhitespaceChar);
return name.replace(/^\.|\/\.|\.\.|~|\^|:|\/$|\.lock$|\.lock\/|\\|\*|\s|^\s*$|\.$|\[|\]$/g, branchWhitespaceChar);
};
const result = await window.showInputBox({