mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-06-29 08:57:43 -04:00
Fix entry partial matching rules.
This commit is contained in:
parent
8f33c5235b
commit
53b30e267c
1 changed files with 9 additions and 9 deletions
|
@ -184,10 +184,10 @@ QList<Entry*> Service::searchEntries(const QString &text)
|
||||||
QString url = entry->url();
|
QString url = entry->url();
|
||||||
|
|
||||||
//Filter to match hostname in Title and Url fields
|
//Filter to match hostname in Title and Url fields
|
||||||
if ( hostname.contains(title)
|
if ( (!title.isEmpty() && hostname.contains(title))
|
||||||
|| hostname.contains(url)
|
|| (!url.isEmpty() && hostname.contains(url))
|
||||||
|| (matchUrlScheme(title) && hostname.contains(QUrl(title).host()))
|
|| (matchUrlScheme(title) && hostname.endsWith(QUrl(title).host()))
|
||||||
|| (matchUrlScheme(url) && hostname.contains(QUrl(url).host())) )
|
|| (matchUrlScheme(url) && hostname.endsWith(QUrl(url).host())) )
|
||||||
entries.append(entry);
|
entries.append(entry);
|
||||||
}
|
}
|
||||||
} while(entries.isEmpty() && removeFirstDomain(hostname));
|
} while(entries.isEmpty() && removeFirstDomain(hostname));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue