From b7d5ee5754f3941db3ba31d79ee51aac7c6a7985 Mon Sep 17 00:00:00 2001 From: ericz Date: Mon, 2 Mar 2026 21:35:16 +0100 Subject: [PATCH] Allow search for prefix as Displayed in contact list. --- lib/utils/contact_search.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/utils/contact_search.dart b/lib/utils/contact_search.dart index 31def4e..2359793 100644 --- a/lib/utils/contact_search.dart +++ b/lib/utils/contact_search.dart @@ -19,6 +19,9 @@ String? _extractHexPrefix(String query) { if (cleaned.startsWith('0x')) { cleaned = cleaned.substring(2); } + if (cleaned.startsWith('<')) { + cleaned = cleaned.substring(1).replaceAll(">", ""); + } cleaned = cleaned.replaceAll(' ', ''); if (cleaned.length < 2) return null; if (!RegExp(r'^[0-9a-f]+$').hasMatch(cleaned)) return null;