From 39cf539e862af20f95276dc6b00ec92446debebe Mon Sep 17 00:00:00 2001 From: dongjf <1+dongjf@noreply.git.tutudog.com> Date: Thu, 26 Nov 2026 20:33:02 +0800 Subject: [PATCH] =?UTF-8?q?fix(ios):=20=E6=8B=92=E7=BB=9D=E5=A4=B9?= =?UTF-8?q?=E5=B8=A6=E7=89=B9=E6=AE=8A=E5=AD=97=E7=AC=A6=E7=9A=84=E5=8D=95?= =?UTF-8?q?=E4=BB=B7=E8=BE=93=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/ios/ItemAtlas/InventoryAppearance.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/ios/ItemAtlas/InventoryAppearance.swift b/apps/ios/ItemAtlas/InventoryAppearance.swift index 9a1ab55..149612e 100644 --- a/apps/ios/ItemAtlas/InventoryAppearance.swift +++ b/apps/ios/ItemAtlas/InventoryAppearance.swift @@ -75,8 +75,8 @@ enum PurchasePrice { let fraction = parts.count == 2 ? parts[1] : "" guard !whole.isEmpty || !fraction.isEmpty, whole.count <= 8, fraction.count <= 2, - whole.allSatisfy({ $0 >= "0" && $0 <= "9" }), - fraction.allSatisfy({ $0 >= "0" && $0 <= "9" }) + whole.utf8.allSatisfy({ (48...57).contains($0) }), + fraction.utf8.allSatisfy({ (48...57).contains($0) }) else { return nil } let yuan = Int64(whole) ?? 0 let minor = (Int64(fraction) ?? 0) * (fraction.count == 1 ? 10 : 1)