Skip to content

Commit

Permalink
Meta tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Mar 10, 2024
1 parent 8e3727e commit 94ad7e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Expand Up @@ -38,6 +38,7 @@ export default function stringWidth(string, options = {}) {
continue;
}

// TODO: Use `/\p{RGI_Emoji}/v` when targeting Node.js 20.
if (emojiRegex().test(character)) {
width += 2;
continue;
Expand Down

0 comments on commit 94ad7e1

Please sign in to comment.