From b4888c1d72d2c26d84d73beb37efd49dd309f5e6 Mon Sep 17 00:00:00 2001 From: tretrauit Date: Wed, 24 Jan 2024 12:47:26 +0700 Subject: [PATCH] fix(katana): add y to [uv] regex --- swordfish/src/tesseract/utils.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/swordfish/src/tesseract/utils.rs b/swordfish/src/tesseract/utils.rs index cf66809..3a8ca5c 100644 --- a/swordfish/src/tesseract/utils.rs +++ b/swordfish/src/tesseract/utils.rs @@ -162,8 +162,8 @@ pub fn regexify_text(text: &String) -> String { // The character "0" is sometimes used in place of "O" in names if ['0', 'O'].contains(&c) { ascii_text.push_str("[0O]"); - } else if ['u', 'v'].contains(&c) { - ascii_text.push_str("[uv]"); + } else if ['u', 'v', 'y'].contains(&c) { + ascii_text.push_str("[uvy]"); } else if ['t'].contains(&c) { ascii_text.push_str("[ti]"); } else if ['I', 'l', '!', '1'].contains(&c) {