add joker parser from b64

This commit is contained in:
2025-06-08 16:04:10 +02:00
parent 2750f75cc6
commit dfb626f22c

View File

@@ -1477,7 +1477,7 @@ async function decodePackedString(encodedString: string): Promise<JsonValue> {
}
async function parseJokersFromString(str: string) {
if (str.endsWith('==')) {
if (str.startsWith('7z')) {
const decoded = await decodePackedString(str)
if (decoded && typeof decoded === 'object' && 'cards' in decoded) {
return Object.values(decoded.cards as any).map(