mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 18:08:26 +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));
|
||||
if(!addedFromSearchTerm)
|
||||
{
|
||||
addedFromSearchTerm = (loginDomainName != null && term.Contains(loginDomainName.Split('.')[0]))
|
||||
|| (loginNameString != null && term.Contains(loginNameString));
|
||||
var domainTerm = loginDomainName?.Split('.')[0];
|
||||
addedFromSearchTerm =
|
||||
(domainTerm != null && domainTerm.Length > 2 && term.Contains(domainTerm)) ||
|
||||
(loginNameString != null && term.Contains(loginNameString));
|
||||
}
|
||||
|
||||
if(addedFromSearchTerm)
|
||||
|
|
Loading…
Reference in a new issue