Skip to content

Commit 73a3fe4

Browse files
authored
Do not encode DEL (#115)
1 parent 02227ad commit 73a3fe4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

punycode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const delimiter = '-'; // '\x2D'
1515

1616
/** Regular expressions */
1717
const regexPunycode = /^xn--/;
18-
const regexNonASCII = /[^\0-\x7E]/; // non-ASCII chars
18+
const regexNonASCII = /[^\0-\x7F]/; // Note: U+007F DEL is excluded too.
1919
const regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g; // RFC 3490 separators
2020

2121
/** Error messages */

0 commit comments

Comments
 (0)