4 ms·
In case anyone else strongly disagrees with the author and wants to implement the Microsoft/Google/KDE/etc behavior, Google conveniently has this open sourced:
by kccqzy 1y ago
In case anyone else strongly disagrees with the author and wants to implement the Microsoft/Google/KDE/etc behavior, Google conveniently has this open sourced: https://github.com/google/closure-library/blob/b312823ec5f84239ff1db7526f4a75cba0420a33/closure/goog/string/string.js#L385 https://github.com/google/closure-library/blob/b312823ec5f84...
How did I find it? Well I wanted to implement it a while ago and I found it in Closure a library I was already using.