stdlib-js / stdlib-js/stdlib

Bug with skin tone emojis when using `prevGraphemeClusterBreak` package

Open
#1,092 3 comments 0 reactions 0 assignees View on GitHub
Bug difficulty: 3 Good First Issue Help Wanted JavaScript priority: High
Dominant language
JavaScript
Stars
6k
Forks
1.3k
Avg merge
1d 3h
Merged PRs (30d)
611

Description

There's an issue with `prevGraphemeClusterBreak` package, if I compare the results with `nextGraphemeClusterBreak` for a single skin tone emoji it doesn't return the same values,

```
prevGraphemeClusterBreak( '👉🏿' ) // returns 1
nextGraphemeClusterBreak( '👉🏿' ) // returns -1
```

_Originally posted by @steff456 in https://github.com/stdlib-js/stdlib/pull/1079#discussion_r1306328286_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.