(values)
| 623 | } |
| 624 | |
| 625 | function normalizeCloudflareDomains(values) { |
| 626 | const normalizedDomains = []; |
| 627 | const seen = new Set(); |
| 628 | |
| 629 | for (const value of Array.isArray(values) ? values : []) { |
| 630 | const normalized = normalizeCloudflareDomain(value); |
| 631 | if (!normalized || seen.has(normalized)) continue; |
| 632 | seen.add(normalized); |
| 633 | normalizedDomains.push(normalized); |
| 634 | } |
| 635 | |
| 636 | return normalizedDomains; |
| 637 | } |
| 638 | |
| 639 | function normalizeHotmailRemoteBaseUrl(rawValue = '') { |
| 640 | const value = String(rawValue || '').trim(); |
no test coverage detected