matching dotfiles can be difficult
wanderview opened this issue · 0 comments
wanderview commented
Consider a pattern intended to match dotfiles like new URLPattern({ pathname: '/.*' })
. The pathname encoding algorithm will end up collapsing the /.
to just .
so you get a final pattern of /*
.
To work around this issue you can isolate the dot in a custom regexp group like /(\\.)*
.
This is forked off from #156.