support pay-to-identifier.

This commit is contained in:
fiatjaf
2021-08-10 07:25:51 -03:00
parent 2bcc01d640
commit a019d29b9b
4 changed files with 97 additions and 50 deletions
+4 -1
View File
@@ -346,7 +346,10 @@ new Vue({
.split('&')[0]
}
if (this.parse.data.request.toLowerCase().startsWith('lnurl1')) {
if (
this.parse.data.request.toLowerCase().startsWith('lnurl1') ||
this.parse.data.request.match(/[\w.+-~_]+@[\w.+-~_]/)
) {
LNbits.api
.request(
'GET',