aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-03-19 23:18:24 -0700
committerAdam Soltys <[email protected]>2024-03-19 23:18:24 -0700
commitc836074c1b83d0a0d2a2904f1942ce6bd918a5a9 (patch)
treead3f80a154a24274e51118a21903d0754a861655
parent59e2f69f0b0ab31e18bdc36e1d605ba2c82bed1d (diff)
downloadcoinos-ui-c836074c1b83d0a0d2a2904f1942ce6bd918a5a9.tar.gz
coinos-ui-c836074c1b83d0a0d2a2904f1942ce6bd918a5a9.zip
strip lightning prefix
-rwxr-xr-xbun.lockbbin120802 -> 120802 bytes
-rw-r--r--src/routes/(app)/send/[...text]/+page.server.js1
2 files changed, 1 insertions, 0 deletions
diff --git a/bun.lockb b/bun.lockb
index d38a703b..1eef7df1 100755
--- a/bun.lockb
+++ b/bun.lockb
Binary files 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 {