When counting characters in JavaScript, the surrogate pair issue (where emoji and certain CJK characters count as 2) is fairly well-known. You've probably seen advice like "just use [...str].length" to solve it.
However, when I implemented a character counter for a textarea on the frontend, I discovered there are other causes of mismatches beyond...
🛡️ VERIFIED CYBER INTELLIGENCE ID: #3199744