Repository navigation
Commit 569084d
committed
fix(web): PR comment hover excerpts no longer end in a replacement character
The excerpt cut at a fixed UTF-16 length, so an emoji straddling the cut
left a lone high surrogate before the ellipsis. Back off one code unit
when the cut lands inside a surrogate pair, like the other preview cuts.
Fixes #35082
AI-assisted; verified with the tests and tools listed above.1 parent 0b69559 commit 569084d
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
732 | 732 | | |
733 | 733 | | |
734 | 734 | | |
735 | | - | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
736 | 741 | | |
737 | 742 | | |
738 | 743 | | |
| |||
0 commit comments