mathiasbynens / esrever

A Unicode-aware string reverser written in JavaScript.
https://git.io/esrever
MIT License
890 stars 31 forks source link

Example is just as bad in Firefox. #19

Open Buggem opened 2 years ago

Buggem commented 2 years ago

The example you used here doesn't work: link.

Input:
var input = 'foo 𝌆 bar mañana mañana';
console.log(`Using esrever: ${esrever.reverse(input)}`);
console.log(`Using bad way: ${input.split('').reverse().join('')}`);
Output:
Using esrever: anãnam anañam rab 𝌆 oof
Using bad way: anãnam anañam rab �� oof

Yep, you better start working on this weird issue. It doesn't work on chrome either. This is a very big "oof" for you guys.

(sort of related to #18)