Commit 60880cd
committed
Fix path ignores not matching subdirs in URLs
Currently a pattern like /category/abc ignores
subpaths such as /category/abc/def in files
because of how we parse the filesystem. We ignore
the entire dir and implicitly ignore its children.
But when we match URL paths, we only match the
entire path and don't consider if any of its
parent "directories" are ignored. We want the
ignore behavior for URL paths to be as close to
filesystem behavior as we can get it.
Fix by changing the /?$ part of the regex to
(/.*)?$ so that each path ignore pattern matches
all subpaths as well as the exact path itself.1 parent a8fa649 commit 60880cd
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
59 | 61 | | |
60 | | - | |
| 62 | + | |
61 | 63 | | |
62 | 64 | | |
63 | 65 | | |
| |||
0 commit comments