Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use indivisible line hashes #141

Closed
wants to merge 1 commit into from

Conversation

schroederc
Copy link

Revert implementation of diffLines to use runes to fix #140. In order to not regress #89, skip invalid utf8 runes when munging lines. We also panic if we reach the upper limit.

I'm sending this out with the limitation in place and commented because I think having a limit is preferable to silently returning incorrect results as in #140. However, the most preferable solution would be something as described in #89 (comment).

Revert implementation of diffLines to use runes to fix sergi#140.  In order
to not regress sergi#89, skip invalid utf8 runes when munging lines.
@howdareyou69
Copy link

Very invisible

@schroederc schroederc changed the title fix: use indivisble line hashes fix: use indivisible line hashes Mar 31, 2023
@schroederc schroederc closed this May 1, 2024
@schroederc schroederc deleted the line-diff branch May 1, 2024 02:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Munged text leads to incorrect diffs
2 participants