:warning: :warning: :warning: this also contains a minor (IMHO) BC break: :warning: :warning: :warning:
before, the inDirectory filter would return true if the directory is any part of the file path or name (for example, "inDirectory": "foo/" was true for foo/bar.php (OK), bar/foo/bar.php (KO)
after, the directory must be the start of the path relative to git dir
@sebastianfeldmann do not hesitate to update or reject this PR if you disagree with it
this fix allows to add a condition for staged files contains a
php
file from either directoryfoo
orbar
in the form:warning: :warning: :warning: this also contains a minor (IMHO) BC break: :warning: :warning: :warning:
"inDirectory": "foo/"
was true forfoo/bar.php
(OK),bar/foo/bar.php
(KO)@sebastianfeldmann do not hesitate to update or reject this PR if you disagree with it