Skip to content

Comments

Use Intl.Segmenter, require Node.js v16#47

Merged
sindresorhus merged 7 commits intosindresorhus:mainfrom
fisker:segmenter
May 5, 2023
Merged

Use Intl.Segmenter, require Node.js v16#47
sindresorhus merged 7 commits intosindresorhus:mainfrom
fisker:segmenter

Conversation

@fisker
Copy link
Contributor

@fisker fisker commented May 5, 2023

Fixes #35
Fixes #43

stringWidth('\u{845B}\u{E0100}')
// -> 3 (Before)
// -> 2 (After)

@sindresorhus sindresorhus merged commit f85812f into sindresorhus:main May 5, 2023
@fisker fisker deleted the segmenter branch May 5, 2023 15:31
frantic1048 added a commit to frantic1048/Restia that referenced this pull request May 23, 2023
This reverts commit 39f56ba.

string-width@6 uses `Intl.Segment` while no Firefox version has implemented

- sindresorhus/string-width#47
- sindresorhus/string-width#50 (comment)
frantic1048 added a commit to frantic1048/Restia that referenced this pull request May 23, 2023
This reverts commit 39f56ba.

string-width@6 uses `Intl.Segment` while no Firefox version has implemented

- sindresorhus/string-width#47
- sindresorhus/string-width#50 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

thai combining charactern not working Use Intl.Segmenter when available?

2 participants