1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-05-29 23:17:32 +02:00

Merge pull request #1172 from jesseduffield/dawidd6-patch-1

gui: ReplaceAll -> Replace
This commit is contained in:
Dawid Dziurla 2021-02-24 00:14:24 +01:00 committed by GitHub
commit a62d70fbd5
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)
}