Make leet command case-insensitive

This commit is contained in:
Yash Karandikar 2022-07-16 12:48:43 -04:00
parent 287d2657f3
commit 3bbf39000b

View file

@ -44,7 +44,7 @@ fn leetify(input: &str) -> ArrayString<512> {
let mut builder = ArrayString::<512>::new();
for ch in input.chars() {
builder.push(match ch {
builder.push(match ch.to_ascii_lowercase() {
'a' => '4',
'e' => '3',
'i' => '1',