Commit b5a7d15
Rose Robertson
Fix issue with surrogate pairs messing up links at EOL
The closing code for entity items was sometimes not run at the end of a block if the block text included emoji made up of multiple characters. In cases such as this. string.length !== Array.from(string).length, the latter being a more accurate representation of how many characters there actually are.1 parent 93e0d36 commit b5a7d15
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
439 | | - | |
| 439 | + | |
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
| |||
0 commit comments