You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Glob matcher passes regex metacharacters through: '+' throws, '(…)' and '?' mismatch, bare '**' misses nested paths #178
regexFrom (src/research/baseline/matcher.ts:13-26) escapes only \ and . before turning the glob into a regular expression. Everything else goes through as regex syntax:
(, ), |, ^ and $ act as regex operators, so the literal route group (shop) never matches;
+ throws;
? becomes a quantifier instead of "one character";
the \ that escapes a glob character is itself escaped, so \[id\] can't name a literal bracket.
A ** that isn't next to a / (**, **.js) falls through to the single-* rule, so it never crosses a directory.
src/planner/planner.ts:13-46 has an identical copy, which DefaultCIPlanner uses for inputPatterns. Today the patterns come from built-in defaults that avoid these characters. But workflow path filters (#177) and caller-supplied createTaskRegistry patterns don't.
What you expected
Glob semantics. * and ? stay within a segment, ** crosses segments, {a,b} and [...] work as in globs, \ escapes the next character, and every other character is literal. A pattern never throws.
Activity
fix(planner): read task input globs the way the research matcher does
fix(planner): match task input patterns as path globs (#174)
fix(research): compile globs character by character so regex metachar…