Accept uppercase letters for retry decision (fixes #58)

This commit is contained in:
Roey Darwish Dror
2018-08-30 10:41:17 +03:00
parent eba3f66993
commit c0ac3e483e

View File

@@ -84,8 +84,8 @@ impl Terminal {
if let Ok(_) = stdin().read_line(&mut result) { if let Ok(_) = stdin().read_line(&mut result) {
match result.as_str() { match result.as_str() {
"y\n" => return true, "y\n" | "Y\n" => return true,
"n\n" | "\n" => return false, "n\n" | "N\n" | "\n" => return false,
_ => (), _ => (),
} }
} else { } else {