stdlib-js / stdlib-js/stdlib

Bug with skin tone emojis when using `prevGraphemeClusterBreak` package

未关闭
#1,092 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Bug difficulty: 3 Good First Issue Help Wanted JavaScript priority: High
主要语言
JavaScript
星标
6k
派生
1.3k
平均合并
1 天 3 小时
30 天内合并 PR
611

描述

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_

贡献指南

打开贡献指南

调研方向

Start by reproducing the discrepancy with the `prevGraphemeClusterBreak` and `nextGraphemeClusterBreak` entry points using the single skin tone emoji shown in the issue. Compare their boundary results and inspect the related package behavior; done means the two functions handle this emoji consistently and the regression is covered by a test.

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript
领域
tooling
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。