File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/extension/content-script/batteries Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ const battery = (): void => {
59
59
}
60
60
// if there is no lnurl we check for a zap emoji with a lightning address
61
61
// we check for the @-sign to try to limit the possibility to match some invalid text (e.g. random emoji usage)
62
- else if ( ( match = text . match ( / ( ⚡ ️ : ? | l i g h t n i n g : | l n u r l : ) ( \S + @ \S + ) / i) ) ) {
62
+ else if ( ( match = text . match ( / ( ⚡ ️ : ? | l i g h t n i n g : | l n u r l : ) \s ? ( \S + @ \S + ) / i) ) ) {
63
63
recipient = match [ 2 ] ;
64
64
} else {
65
65
return ;
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ const battery = (): void => {
22
22
}
23
23
// if there is no lnurl we check for a zap emoji with a lightning address
24
24
// we check for the @-sign to try to limit the possibility to match some invalid text (e.g. random emoji usage)
25
- else if ( ( match = text . match ( / ( ⚡ : ? | l i g h t n i n g : | l n u r l : ) ( \S + @ \S + ) / i) ) ) {
25
+ else if ( ( match = text . match ( / ( ⚡ : ? | l i g h t n i n g : | l n u r l : ) \s ? ( \S + @ \S + ) / i) ) ) {
26
26
recipient = match [ 2 ] ;
27
27
} else {
28
28
return ;
You can’t perform that action at this time.
0 commit comments