From c836074c1b83d0a0d2a2904f1942ce6bd918a5a9 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 19 Mar 2024 23:18:24 -0700 Subject: strip lightning prefix --- bun.lockb | Bin 120802 -> 120802 bytes src/routes/(app)/send/[...text]/+page.server.js | 1 + 2 files changed, 1 insertion(+) diff --git a/bun.lockb b/bun.lockb index d38a703b..1eef7df1 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/src/routes/(app)/send/[...text]/+page.server.js b/src/routes/(app)/send/[...text]/+page.server.js index 479bca6b..061eb35f 100644 --- a/src/routes/(app)/send/[...text]/+page.server.js +++ b/src/routes/(app)/send/[...text]/+page.server.js @@ -19,6 +19,7 @@ let parse = async (t, host) => { options: { amount }, } = bip21.decode(t)); + if (t.startsWith("lightning:")) t = t.replace("lightning:", ""); if (t.endsWith(`@${PUBLIC_DOMAIN}`)) t = t.split("@")[0]; if (t.includes("@") && t.includes(".")) { try { -- cgit v1.2.3