mirror of
https://github.com/apognu/tuigreet.git
synced 2024-09-11 07:25:29 +03:00
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:
parent
ca5762d56a
commit
18bc57c379
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user