We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e3727e commit 94ad7e1Copy full SHA for 94ad7e1
index.js
@@ -38,6 +38,7 @@ export default function stringWidth(string, options = {}) {
38
continue;
39
}
40
41
+ // TODO: Use `/\p{RGI_Emoji}/v` when targeting Node.js 20.
42
if (emojiRegex().test(character)) {
43
width += 2;
44
0 commit comments