1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-10 04:07:18 +02:00

gui: ReplaceAll -> Replace

This commit is contained in:
Dawid Dziurla 2021-02-24 00:09:05 +01:00 committed by GitHub
parent b726dcc770
commit 053e80a08e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}