We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In some cases diff сuts unicode charachres (cyrilic for example). Adding mb_chars to diff_lcs solves problem:
diffs = Diff::LCS.sdiff( (old_text || '').mb_chars, (new_text || '').mb_chars ) # Building symmetric diff sequence
The text was updated successfully, but these errors were encountered:
Thanks, fixed.
Sorry, something went wrong.
I don't understand definitely why, but this fix require change in Irwi::Comparators::Spans::NotChangedSpan (.to_s instead of simple @value)
def to_s @value.to_s end
It uses some kind inspect instead of to_s otherwise
Ok, released, i think this is because result of mb_chars in fact not a string
No branches or pull requests
In some cases diff сuts unicode charachres (cyrilic for example). Adding mb_chars to diff_lcs solves problem:
The text was updated successfully, but these errors were encountered: