Fix bug where greet align could not match;

Greet align matches to exact case now, not coaxing the string into upper/lower case
This commit is contained in:
dthelegend 2024-05-13 13:08:49 +01:00 committed by Antoine POPINEAU
parent ca5762d56a
commit 18bc57c379

View File

@ -351,7 +351,7 @@ impl Greeter {
pub fn greet_align(&self) -> GreetAlign {
if let Some(value) = self.option("greet-align") {
match value.to_uppercase().as_str() {
match value.as_str() {
"left" => GreetAlign::Left,
"right" => GreetAlign::Right,
_ => GreetAlign::Center