mirror of
https://github.com/Jguer/yay
synced 2024-07-21 10:16:10 +00:00
Fix ContinueTask user prompt for locales with uppercase yes (#1735)
* Fix ContinueTask user prompt for locales with uppercase yes The yes/y strings have to be converted to lowercase to enable matching of the user input converted to lowercase. Otherwise, locales with uppercase yes/y strings (e.g., German: `Ja/J`) will never match. * Addess linter issue * Remove obsolete lowercase conversion
This commit is contained in:
parent
85023f7197
commit
94cff87927
|
@ -74,7 +74,5 @@ func ContinueTask(s string, cont, noConfirm bool) bool {
|
||||||
return cont
|
return cont
|
||||||
}
|
}
|
||||||
|
|
||||||
response = strings.ToLower(response)
|
return strings.EqualFold(response, yes) || strings.EqualFold(response, y)
|
||||||
|
|
||||||
return response == yes || response == y
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue