mirror of
https://github.com/ershisan99/www.git
synced 2025-12-18 05:19:23 +00:00
add joker parser from b64
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user