Repository navigation
Commit 4c16851
committed
fix(web): preview annotation chip labels no longer end in a broken character
A preview annotation's context chip takes its label from the comment,
cut at 47 UTF-16 code units before the shared label sanitizer runs. An
emoji straddling that cut left a lone high surrogate before the
ellipsis, so the chip, the record sent with the message and a thread
title seeded from the annotation all showed a replacement character.
The cut now steps back one unit when it would split a surrogate pair,
the check #29158 added to the shared context chip label cap. The
48-character limit and labels without a split emoji are unchanged.
Bug: a preview annotation chip label ends in a broken character when an emoji sits at the cut1 parent 941f304 commit 4c16851
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
114 | | - | |
115 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
116 | 119 | | |
117 | 120 | | |
118 | 121 | | |
| |||
0 commit comments