Merge pull request #2055 from BlueWallet/lnurlfix

FIX:  iOS - lightning:lnurl... links #2038
This commit is contained in:
GLaDOS 2020-11-04 14:48:32 +00:00 committed by GitHub
commit 7aa941ae9e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -149,7 +149,7 @@ class DeeplinkSchemaMatch {
{
screen: 'LNDCreateInvoice',
params: {
uri: event.url,
uri: event.url.replace('lightning:', '').replace('LIGHTNING:', ''),
},
},
]);

View file

@ -20,7 +20,7 @@ export default class Lnurl {
}
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) {
return res[1];
}