Merge pull request #4609 from afahrer/master

Channel search results showing up during TX search
This commit is contained in:
softsimon
2024-01-26 23:43:47 +07:00
committed by GitHub
2 changed files with 4 additions and 1 deletions

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 [];
}