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 a2fd29a commit 766be66Copy full SHA for 766be66
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-\x7E]/; // non-ASCII chars
19
const regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g; // RFC 3490 separators
20
@@ -386,7 +386,7 @@ const encode = function(input) {
386
const toUnicode = function(input) {
387
return mapDomain(input, function(string) {
388
return regexPunycode.test(string)
389
- ? decode(string.slice(4).toLowerCase())
+ ? decode(string.slice(4))
390
: string;
391
});
392
};
0 commit comments