mathiasbynens / punycode.js

A robust Punycode converter that fully complies to RFC 3492 and RFC 5891.
https://mths.be/punycode
MIT License
1.59k stars 158 forks source link

Do not encode DEL #115

Closed mjethani closed 1 year ago

mjethani commented 2 years ago

Node.js's url.domainToASCII() does not encode DEL and this is the correct behavior according to RFC 3490.

This patch updates the regexNonASCII range to include DEL.

mathiasbynens commented 1 year ago

Thanks! I’ve added a test in cd1a4baaf8cf0b4e33469024970527b3e63041f9.