(message)
| 44 | } |
| 45 | |
| 46 | function getIcloudHostHintFromMessage(message) { |
| 47 | const lower = String(message || '').toLowerCase(); |
| 48 | if (lower.includes('setup.icloud.com.cn') || lower.includes('www.icloud.com.cn') || lower.includes('icloud.com.cn')) { |
| 49 | return 'icloud.com.cn'; |
| 50 | } |
| 51 | if (lower.includes('setup.icloud.com') || lower.includes('www.icloud.com') || lower.includes('icloud.com')) { |
| 52 | return 'icloud.com'; |
| 53 | } |
| 54 | return ''; |
| 55 | } |
| 56 | |
| 57 | function normalizeBooleanMap(rawValue = {}) { |
| 58 | if (!rawValue || typeof rawValue !== 'object' || Array.isArray(rawValue)) { |
no outgoing calls
no test coverage detected