From 053e80a08ec05278a56aa765a5cada65f75c576f Mon Sep 17 00:00:00 2001 From: Dawid Dziurla Date: Wed, 24 Feb 2021 00:09:05 +0100 Subject: gui: ReplaceAll -> Replace --- pkg/gui/branches_panel.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } -- cgit v1.2.3