From cde01d45d7dd2eb792e389ab98cf58ac87706700 Mon Sep 17 00:00:00 2001 From: tretrauit Date: Wed, 10 Jan 2024 23:05:32 +0700 Subject: [PATCH] fix(katana): add more workaround to regex :skull: --- swordfish/src/katana.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/swordfish/src/katana.rs b/swordfish/src/katana.rs index 1d9fa63..b8912ae 100644 --- a/swordfish/src/katana.rs +++ b/swordfish/src/katana.rs @@ -189,6 +189,8 @@ fn regexify_text(text: &String) -> String { if prev_char.is_numeric() && prev_prev_char.is_whitespace() { continue; } + } else if ['R'].contains(&c) { + ascii_text.push_str("[Rk]"); } else if c.is_ascii_alphanumeric() { ascii_text.push(c); } else {