mirror of
https://github.com/bitwarden/android.git
synced 2025-01-12 11:17:30 +03:00
domain search term must be at least 3 characters
This commit is contained in:
parent
e519b13533
commit
b26067e5da
1 changed files with 4 additions and 2 deletions
|
@ -483,8 +483,10 @@ namespace Bit.App.Services
|
||||||
(loginNameString != null && loginNameString.Contains(term));
|
(loginNameString != null && loginNameString.Contains(term));
|
||||||
if(!addedFromSearchTerm)
|
if(!addedFromSearchTerm)
|
||||||
{
|
{
|
||||||
addedFromSearchTerm = (loginDomainName != null && term.Contains(loginDomainName.Split('.')[0]))
|
var domainTerm = loginDomainName?.Split('.')[0];
|
||||||
|| (loginNameString != null && term.Contains(loginNameString));
|
addedFromSearchTerm =
|
||||||
|
(domainTerm != null && domainTerm.Length > 2 && term.Contains(domainTerm)) ||
|
||||||
|
(loginNameString != null && term.Contains(loginNameString));
|
||||||
}
|
}
|
||||||
|
|
||||||
if(addedFromSearchTerm)
|
if(addedFromSearchTerm)
|
||||||
|
|
Loading…
Reference in a new issue