Fix Windows

This commit is contained in:
Yasuhiro Matsumoto
2021-09-29 01:33:59 +09:00
parent 768d55e5d4
commit b825e0f535
4 changed files with 14 additions and 12 deletions

View File

@ -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 {