On Mon, Mar 11, 2019 at 1:22 PM Tim Düsterhus <t...@bastelstu.be> wrote:
> > BTW, should I also open a feature request for an actual "subdir"
> > match?  (Perhaps if I have some time I could even come-up with a
> > patch...)
>
> I am not responsible for deciding what gets in and what doesn't. But: In
> my opinion there is no need for such a match as it can easily be
> "emulated" by combining `dir` and `beg` or `eq` and `beg` like you did.
> A regular expression such as ^/test(/|$) should work as well.


My main issue with the "alternatives" (and especially the regular
expression) is performance...  It is trivial for an `subdir` match to
do exactly what `beg` does, but check an extra character, than doing
two matches of exactly the same string...

Ciprian.


> If you consider doing a patch: Please read the CONTRIBUTING guide and
> send the patch to the list (i.e. not using a GitHub pull request, only
> the GitHub issue tracker is being used).

Good to know.

Ciprian.

Reply via email to