On Tue, Oct 11, 2016 at 01:11:04PM -0600, Martin Sebor wrote:
> Also, the pattern that starts with "/\+\+\+" looks like it's missing
> the ^ anchor.  Presumably it should be "/^\+\+\+ \/testsuite\//".

No, it will be almost never +++ /testsuite/
There needs to be .* in between "+++ " and "/testsuite/", and perhaps
it should also ignore "+++ testsuite/".
So /^\+\+\+ (.*\/)?testsuite\// ?
Also, normally (when matching $0) there won't be newlines in the text.

        Jakub

Reply via email to