mirror of
https://github.com/Jguer/yay.git
synced 2025-10-08 00:04:37 -04: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
|
||||
}
|
||||
|
||||
response = strings.ToLower(response)
|
||||
|
||||
return response == yes || response == y
|
||||
return strings.EqualFold(response, yes) || strings.EqualFold(response, y)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user