Merge pull request #253 from ericszimmermann/ez_search-displayed-prefix

Allow search for prefix as Displayed in contact list
This commit is contained in:
zjs81 2026-03-02 18:44:04 -07:00 committed by GitHub
commit bd5db9a9d5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16,6 +16,9 @@ bool matchesContactQuery(Contact contact, String query) {
String? _extractHexPrefix(String query) {
var cleaned = query;
if (cleaned.startsWith('<')) {
cleaned = cleaned.substring(1).replaceAll(">", "");
}
if (cleaned.startsWith('0x')) {
cleaned = cleaned.substring(2);
}