(input)
| 399 | * string. |
| 400 | */ |
| 401 | const toUnicode = function(input) { |
| 402 | return mapDomain(input, function(string) { |
| 403 | return regexPunycode.test(string) |
| 404 | ? decode(string.slice(4).toLowerCase()) |
| 405 | : string; |
| 406 | }); |
| 407 | }; |
| 408 | |
| 409 | /** |
| 410 | * Converts a Unicode string representing a domain name or an email address to |