1
0
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:
Kyle Spearrin 2018-07-19 09:16:23 -04:00
parent 090fa76d15
commit 50b7ce764e

View File

@ -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;
}