mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-05 08:23:35 +00:00
add underscore for cashu token detection
This commit is contained in:
1 parent
5d18a2acf1
commit
aec83f728e
1 file changed
+1
-1
@@ -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 };
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user