From 74d94579f96c27fb89f9489d1e65a87043bed64b Mon Sep 17 00:00:00 2001 From: afahrer Date: Tue, 23 Jan 2024 20:48:49 -0500 Subject: [PATCH] Channel search results showing up during TX search --- backend/src/api/explorer/channels.api.ts | 2 +- contributors/afahrer.txt | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 contributors/afahrer.txt diff --git a/backend/src/api/explorer/channels.api.ts b/backend/src/api/explorer/channels.api.ts index cf38610b4..b55c579a1 100644 --- a/backend/src/api/explorer/channels.api.ts +++ b/backend/src/api/explorer/channels.api.ts @@ -81,7 +81,7 @@ class ChannelsApi { public async $searchChannelsById(search: string): Promise { 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 []; } diff --git a/contributors/afahrer.txt b/contributors/afahrer.txt new file mode 100644 index 000000000..1ce6dc8e5 --- /dev/null +++ b/contributors/afahrer.txt @@ -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 \ No newline at end of file