mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-01 18:08:19 +01:00
trim all domains
This commit is contained in:
parent
090fa76d15
commit
50b7ce764e
@ -66,7 +66,7 @@ export class DomainRulesComponent implements OnInit {
|
||||
request.excludedGlobalEquivalentDomains = null;
|
||||
}
|
||||
request.equivalentDomains = this.custom.filter((d) => d != null && d.trim() !== '')
|
||||
.map((d) => d.split(' ').join('').split(','));
|
||||
.map((d) => d.split(',').map((d2) => d2.trim()));
|
||||
if (request.equivalentDomains.length === 0) {
|
||||
request.equivalentDomains = null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user