Skip to content

Commit

Permalink
Fix bug where greet align could not match;
Browse files Browse the repository at this point in the history
Greet align matches to exact case now, not coaxing the string into upper/lower case
  • Loading branch information
dthelegend committed May 13, 2024
1 parent df0a669 commit a917fad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/greeter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a917fad

Please sign in to comment.