Skip to content

Commit

Permalink
Do not encode DEL (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjethani committed Jan 18, 2023
1 parent 02227ad commit 73a3fe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion punycode.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const delimiter = '-'; // '\x2D'

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

/** Error messages */
Expand Down

0 comments on commit 73a3fe4

Please sign in to comment.