samg / diffy

Easy Diffing in Ruby
http://rubygems.org/gems/diffy
MIT License
1.26k stars 103 forks source link

Fix diff lines that begin with -- or ++ #99

Closed dark-panda closed 5 years ago

dark-panda commented 5 years ago

We can leverage the file paths path to enhance our regex, since the odds of them matching exactly what appears in a diff output are pretty minimal.

Fixes issues #77 and #92.

sergeych commented 5 years ago

please merge it: it actually helps, I do use it. without this fix it is, frankly, of little use as it drops diffs. @dark-panda thanks 👍

samg commented 5 years ago

Thank you for fixing this longstanding bug!

samg commented 5 years ago

Released in https://rubygems.org/gems/diffy/versions/3.3.0