Avoid skipping dots and other special chars
kgrz opened this issue · 2 comments
kgrz commented
I've put up a repo for demonstrating this: https://github.com/kgrz/diffr-issue
I've seen this happen with dots, hyphens, =
and some words too. Another example:
kgrz commented
mookid commented
Ok, so the issue is this diff:
dot is treated as a word of its own, and is part of the LCS in the first diff:
the . following 10 matches the one following example.
This allows to highlight finer differences: for instance,
-foo.bar.baz
+foo.bar.baq
diffr should highlight baz and baq, rather than the whole lines.
What do you expect the highlighting to be?