$ match. fix transaction starting with number

This commit is contained in:
afahrer 2024-01-23 22:56:17 -05:00
parent 74d94579f9
commit f7f1eb067b
No known key found for this signature in database
GPG Key ID: EA97B6275A4E40B4

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