Channel search results showing up during TX search
This commit is contained in:
parent
58f143f867
commit
74d94579f9
@ -81,7 +81,7 @@ class ChannelsApi {
|
|||||||
public async $searchChannelsById(search: string): Promise<any[]> {
|
public async $searchChannelsById(search: string): Promise<any[]> {
|
||||||
try {
|
try {
|
||||||
// restrict search to valid id/short_id prefix formats
|
// restrict search to valid id/short_id prefix formats
|
||||||
let searchStripped = search.match(/[0-9]+[0-9x]*/)?.[0] || '';
|
let searchStripped = search.match(/^[0-9]+[0-9x]*/)?.[0] || '';
|
||||||
if (!searchStripped.length) {
|
if (!searchStripped.length) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
3
contributors/afahrer.txt
Normal file
3
contributors/afahrer.txt
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
I hereby accept the terms of the Contributor License Agreement in the CONTRIBUTING.md file of the mempool/mempool git repository as of January 23, 2024.
|
||||||
|
|
||||||
|
Signed: afahrer
|
Loading…
x
Reference in New Issue
Block a user