From aec83f728efa1924bc2521a4ab24ef663e784c34 Mon Sep 17 00:00:00 2001 From: lemonknowsall Date: Mon, 27 Oct 2025 23:08:25 -0700 Subject: [PATCH] add underscore for cashu token detection --- src/hooks/useQRCode.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useQRCode.ts b/src/hooks/useQRCode.ts index 3300672..93b147d 100644 --- a/src/hooks/useQRCode.ts +++ b/src/hooks/useQRCode.ts @@ -93,7 +93,7 @@ export function useQRCode(): UseQRCodeReturn { } // Cashu token: cashu... - if (/^cashu[A-Za-z0-9+/=-]+$/.test(decodedText)) { + if (/^cashu[A-Za-z0-9+/=_-]+$/.test(decodedText)) { return { type: 'cashu_token', value: decodedText }; }