You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting unexpected result with diff() when using some unicode chars. Specifically I think the problem is with the 🇺🇸 which is a combinatory sequence of combining 🇺 Regional Indicator Symbol Letter U and 🇸 Regional Indicator Symbol Letter S.
let a = " 🦕🇺🇸👍 ";let b = " 🇺🇸👍 ";let actual = diff(a, b);assert_eq!(actual, vec![Chunk::Equal(" "),Chunk::Delete("🦕"),Chunk::Equal("🇺🇸👍 "),]);
I am getting unexpected result with
diff()
when using some unicode chars. Specifically I think the problem is with the🇺🇸
which is a combinatory sequence of combining 🇺 Regional Indicator Symbol Letter U and 🇸 Regional Indicator Symbol Letter S.Which fails with:
I haven't dug into the code to see why it is breaking "incorrectly" across the unicode sequence, but wanted to raise the issue first.
The text was updated successfully, but these errors were encountered: