mirror of
https://github.com/cheat/cheat.git
synced 2025-09-05 03:28:29 +02:00
Fix Windows
This commit is contained in:
@ -23,7 +23,7 @@ func Prompt(prompt string, def bool) (bool, error) {
|
||||
}
|
||||
|
||||
// normalize the answer
|
||||
ans = strings.ToLower(strings.TrimRight(ans, "\n"))
|
||||
ans = strings.ToLower(strings.TrimSpace(ans))
|
||||
|
||||
// return the appropriate response
|
||||
switch ans {
|
||||
|
Reference in New Issue
Block a user