(value)
| 97 | } |
| 98 | |
| 99 | function normalizeCountryCode(value) { |
| 100 | if (typeof value !== 'string') return ''; |
| 101 | const code = value.trim().toUpperCase(); |
| 102 | return /^[A-Z]{2}$/.test(code) ? code : ''; |
| 103 | } |
| 104 | |
| 105 | function countryFlag(countryCode) { |
| 106 | const code = normalizeCountryCode(countryCode); |
no outgoing calls
no test coverage detected