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:
parent
b726dcc770
commit
053e80a08e
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user