Allow path components with three or more dots in filter patterns

This commit is contained in:
Andrea Mazzoleni 2026-08-26 14:31:51 +02:00
parent 35ae6d62ee
commit c9ca20a1e2
2 changed files with 16 additions and 1 deletions

View file

@ -903,8 +903,17 @@ struct {
/* invalid standalone root and standalone double-star patterns */
{ "/", 0 },
{ "/**/", 0 },
{ ".", 0 },
{ "..", 0 },
{ "/./", 0 },
{ "/../", 0 },
/* valid single and multi-level patterns */
{ "...", 1 },
{ ".../", 1 },
{ "/.../", 1 },
{ "....", 1 },
{ "/foo/.../bar", 1 },
{ "/foo/", 1 },
{ "/foo/**/", 1 },
{ "/**/foo/", 1 },