mirror of
https://github.com/bitwarden/server.git
synced 2025-05-29 07:14:50 -05:00
trim question input
This commit is contained in:
parent
267aa020c6
commit
b048dbcb6b
@ -377,7 +377,7 @@ namespace Bit.Setup
|
|||||||
|
|
||||||
private static bool ReadQuestion(string prompt)
|
private static bool ReadQuestion(string prompt)
|
||||||
{
|
{
|
||||||
var input = ReadInput(prompt).ToLowerInvariant();
|
var input = ReadInput(prompt).ToLowerInvariant().Trim();
|
||||||
return input == "y" || input == "yes";
|
return input == "y" || input == "yes";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user