From a3b247bcb932dbe6441fc3c1858dffcf49e4feb7 Mon Sep 17 00:00:00 2001 From: tretrauit Date: Sun, 14 Jan 2024 17:06:45 +0700 Subject: [PATCH] fix(katana): handle calf error "?" wishlist --- swordfish-common/src/utils/katana.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/swordfish-common/src/utils/katana.rs b/swordfish-common/src/utils/katana.rs index d93dd24..3baa129 100644 --- a/swordfish-common/src/utils/katana.rs +++ b/swordfish-common/src/utils/katana.rs @@ -270,6 +270,9 @@ pub fn parse_cards_from_calf_analysis(content: &String) -> Vec { let mut wl_string = wishlist_str.to_string(); // Remove ♡ wl_string.remove(0); + if wl_string.starts_with('?') { + continue; + } // Remove "," in the number // I don't know, I've never seen this myself. wl_string.remove_matches(",");