Commit 82f9b0e
Fix JS decoding of multiline sequences
The previous logic updated the selection's end position at every pass,
which tended to miss codes at line ends (especially if a final
newline was absent); e.g.
\u274C\u2705\u274C\u2705\u274C\u2705\u274C\u2705\u274C\u2705
\u274C\u2705\u274C\u2705
\u274C\u2705
\u274C
decoded as
❌✅❌✅❌✅❌✅❌✅
❌✅❌✅
❌\u2705
\u274C
An integer overflow exception when encoding 4-byte glyphs like 🍪 was
quietly fixed in ad2e69c. More work still needed before utf8mb4 can be
encoded *correctly*1 parent 1ff61a7 commit 82f9b0e
1 file changed
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
123 | 122 | | |
124 | 123 | | |
125 | 124 | | |
| |||
0 commit comments