fix diff parsing
Merge pull request #8 from toffaletti/fixdiff