diff --git a/lib/utils/contact_search.dart b/lib/utils/contact_search.dart index 2359793..318f307 100644 --- a/lib/utils/contact_search.dart +++ b/lib/utils/contact_search.dart @@ -16,12 +16,12 @@ bool matchesContactQuery(Contact contact, String query) { String? _extractHexPrefix(String query) { var cleaned = query; - if (cleaned.startsWith('0x')) { - cleaned = cleaned.substring(2); - } if (cleaned.startsWith('<')) { cleaned = cleaned.substring(1).replaceAll(">", ""); } + if (cleaned.startsWith('0x')) { + cleaned = cleaned.substring(2); + } cleaned = cleaned.replaceAll(' ', ''); if (cleaned.length < 2) return null; if (!RegExp(r'^[0-9a-f]+$').hasMatch(cleaned)) return null;