align by character length rather than unicode points
dwhieb opened this issue · 0 comments
dwhieb commented
There are two ways to calculate the length of a string: unicode points and characters.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/length
https://flaviocopes.com/javascript-unicode/#get-the-proper-length-of-a-string
https://dmitripavlutin.com/what-every-javascript-developer-should-know-about-unicode/#33-string-length
This library should align by character length rather than by unicode points.