rework section loading
This commit is contained in:
@@ -4,5 +4,5 @@ pub(crate) fn get_user_confirmation() -> bool {
|
||||
print!("Continue? [Y/n] ");
|
||||
std::io::stdout().flush().unwrap();
|
||||
let reply = std::io::stdin().lock().lines().next().unwrap().unwrap();
|
||||
!(reply.is_empty() || reply.to_lowercase().contains('y'))
|
||||
reply.trim().is_empty() || reply.to_lowercase().contains('y')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user