diff --git a/src/app/settings/domain-rules.component.ts b/src/app/settings/domain-rules.component.ts index 5dd76a15a2..fc294e8811 100644 --- a/src/app/settings/domain-rules.component.ts +++ b/src/app/settings/domain-rules.component.ts @@ -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; }