mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-06-14 22:55:12 +10:00
Merge pull request #253 from ericszimmermann/ez_search-displayed-prefix
Allow search for prefix as Displayed in contact list
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user