(domain, callback)
| 2895 | return result; |
| 2896 | } |
| 2897 | function mapDomain(domain, callback) { |
| 2898 | const parts = domain.split("@"); |
| 2899 | let result = ""; |
| 2900 | if (parts.length > 1) { |
| 2901 | result = parts[0] + "@"; |
| 2902 | domain = parts[1]; |
| 2903 | } |
| 2904 | domain = domain.replace(regexSeparators, "."); |
| 2905 | const labels = domain.split("."); |
| 2906 | const encoded = map(labels, callback).join("."); |
| 2907 | return result + encoded; |
| 2908 | } |
| 2909 | function ucs2decode(string) { |
| 2910 | const output = []; |
| 2911 | let counter = 0; |