3 ms·
That's how I imagine most people would start, but unfortunately that will break on anything beyond basic ascii strings. Arabic, Hindi, Vietnamese, etc use diacr
by Etheryte 10mo ago
That's how I imagine most people would start, but unfortunately that will break on anything beyond basic ascii strings. Arabic, Hindi, Vietnamese, etc use diacritics, combining characters and so on, and this isn't even getting into the mess of emojis and their modifiers.
- voidUpdate 10mo agoWould the same not happen with the original? https://en.wikipedia.org/wiki/Npm_left-pad_incident#/media/File:Left-pad_0.0.3_contents.png https://en.wikipedia.org/wiki/Npm_left-pad_incident#/media/F...
- Etheryte 10mo agoIt would, I was not familiar with the specific package, more so commenting on the problem at large. Even coding problems that sounds fairly straightforward can be a source of many dragons if you don't have good tools to solve them.