We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Graphemer is used in the app to perform non-trivial split of strings, for strings such as >1-char emojis used in ENS addresses.
Intl.Segmenter is now widely supported since Firefox 125 (16th April) has included it. Graphemer can be easily replaced by Intl.Segmenter.
Before:
const splitter = new Graphemer(); const stringArray = splitter.splitGraphemes(stringToShorten);
After:
const segmenter = new Intl.Segmenter(); const stringArray = [...segmenter.segment(stringToShorten)].map( (segmentData) => segmentData.segment );
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Graphemer is used in the app to perform non-trivial split of strings, for strings such as >1-char emojis used in ENS addresses.
Intl.Segmenter is now widely supported since Firefox 125 (16th April) has included it. Graphemer can be easily replaced by Intl.Segmenter.
Before:
After:
The text was updated successfully, but these errors were encountered: