fix(katana): add () to allowed chars

This commit is contained in:
tretrauit 2024-01-08 23:45:46 +07:00
parent c347abd07d
commit 1b943f5698

View File

@ -15,7 +15,7 @@ use swordfish_common::{error, trace, warn};
use tokio::task; use tokio::task;
use tokio::time::Instant; use tokio::time::Instant;
static ALLOWED_CHARS_REGEX: LazyLock<Regex> = LazyLock::new(|| Regex::new(r"[\-!.': ]").unwrap()); static ALLOWED_CHARS_REGEX: LazyLock<Regex> = LazyLock::new(|| Regex::new(r"[\-!.':() ]").unwrap());
const CARD_NAME_X_OFFSET: u32 = 22; const CARD_NAME_X_OFFSET: u32 = 22;
const CARD_NAME_Y_OFFSET: u32 = 28; const CARD_NAME_Y_OFFSET: u32 = 28;
const CARD_NAME_WIDTH: u32 = 202 - CARD_NAME_X_OFFSET; const CARD_NAME_WIDTH: u32 = 202 - CARD_NAME_X_OFFSET;