mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-24 15:36:59 +01:00
Merge pull request #2055 from BlueWallet/lnurlfix
FIX: iOS - lightning:lnurl... links #2038
This commit is contained in:
commit
7aa941ae9e
2 changed files with 2 additions and 2 deletions
|
@ -149,7 +149,7 @@ class DeeplinkSchemaMatch {
|
||||||
{
|
{
|
||||||
screen: 'LNDCreateInvoice',
|
screen: 'LNDCreateInvoice',
|
||||||
params: {
|
params: {
|
||||||
uri: event.url,
|
uri: event.url.replace('lightning:', '').replace('LIGHTNING:', ''),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
|
@ -20,7 +20,7 @@ export default class Lnurl {
|
||||||
}
|
}
|
||||||
|
|
||||||
static findlnurl(bodyOfText) {
|
static findlnurl(bodyOfText) {
|
||||||
var res = /^(?:http.*[&?]lightning=)?(lnurl1[02-9ac-hj-np-z]+)/.exec(bodyOfText.toLowerCase());
|
var res = /^(?:http.*[&?]lightning=|lightning:)?(lnurl1[02-9ac-hj-np-z]+)/.exec(bodyOfText.toLowerCase());
|
||||||
if (res) {
|
if (res) {
|
||||||
return res[1];
|
return res[1];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue