diff options
author | Dawid Dziurla <dawidd0811@gmail.com> | 2021-02-24 00:09:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-24 00:09:05 +0100 |
commit | 053e80a08ec05278a56aa765a5cada65f75c576f (patch) | |
tree | 0f2b72cb24938fe2b9d68146559434329ce8b2d2 | |
parent | b726dcc770fe90c3a7c9430c6624bfd5b9de68ca (diff) |
gui: ReplaceAll -> Replace
-rw-r--r-- | pkg/gui/branches_panel.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/gui/branches_panel.go b/pkg/gui/branches_panel.go index b401b4666..9dd5438cc 100644 --- a/pkg/gui/branches_panel.go +++ b/pkg/gui/branches_panel.go @@ -550,5 +550,5 @@ func (gui *Gui) findBranchNameSuggestions(input string) []*types.Suggestion { // sanitizedBranchName will remove all spaces in favor of a dash "-" to meet // git's branch naming requirement. func sanitizedBranchName(input string) string { - return strings.ReplaceAll(input, " ", "-") + return strings.Replace(input, " ", "-", -1) } |