Closed
Description
Currently, if you pass a patch as a string to applyPatch
and it has incorrect line counts in the hunk headers, we'll fail to apply it but won't throw an error to tell you that the patch itself was invalid. That seems bad; I spent a long time struggling to figure out why a patch wasn't applying in #238 because of this.
I don't really see any reason for strict mode not to be on by default, and suggest we make it so in the next major version.