From ad8605c99dab31e41d23918e3811bb3bbf1b38b5 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 13 Dec 2024 22:29:08 +0000 Subject: strip equals --- .gitignore | 1 + routes/lnurl.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index d80c06ae..ec4accfc 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ watcher.log .history/ res req +nobal.sh diff --git a/routes/lnurl.ts b/routes/lnurl.ts index 1528d64c..367978d1 100644 --- a/routes/lnurl.ts +++ b/routes/lnurl.ts @@ -54,7 +54,7 @@ export default { } = req; try { const user = await getUser( - username.replace("lightning:", "").replace(/\s/, "").toLowerCase(), + username.replace("lightning:", "").replace(/\s/, "").replace("=","").toLowerCase(), ); if (!user) fail(`User ${username} not found`); -- cgit v1.2.3