Channel search results showing up during TX search

This commit is contained in:
afahrer committed 2024-01-23 20:48:49 -05:00
1 parent 58f143f867
commit 74d94579f9
2 files changed
+4 -1

No files matched your search

+1 -1
View File
@@ -81,7 +81,7 @@ class ChannelsApi {
public async $searchChannelsById(search: string): Promise<any[]> {
try {
// 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) {
return [];
}