We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9a6a1f commit 967ac02Copy full SHA for 967ac02
punycode.js
@@ -14,7 +14,7 @@ const initialN = 128; // 0x80
14
const delimiter = '-'; // '\x2D'
15
16
/** Regular expressions */
17
-const regexPunycode = /^xn--/;
+const regexPunycode = /^xn--/i;
18
const regexNonASCII = /[^\0-\x7F]/; // Note: U+007F DEL is excluded too.
19
const regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g; // RFC 3490 separators
20
@@ -389,7 +389,7 @@ const encode = function(input) {
389
const toUnicode = function(input) {
390
return mapDomain(input, function(string) {
391
return regexPunycode.test(string)
392
- ? decode(string.slice(4).toLowerCase())
+ ? decode(string.slice(4))
393
: string;
394
});
395
};
0 commit comments