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
Commit a22c3a6
Browse filesBrowse the repository at this point in the historyBrowse files
Previously, `**` followed by a literal `/` generated regex that required
a literal `/`, preventing `**` from matching zero directory segments.
This caused patterns like `**/foo` to fail to match `foo`, and `a/**/b`
to fail to match `a/b`.
- Update `DoubleStarNode._toRegExp` with a `followedBySlash` parameter
that emits `(?:[^]*/)?` instead of `[^]*`.
- Update `SequenceNode._toRegExp` to detect directory boundary positions
(start of sequence or preceded by `/`, and followed by `/`), emitting
the optional-slash regex from `DoubleStarNode` and consuming the leading
slash of the subsequent `LiteralNode`.
- Update `_ListTreeNode.makeRecursive` to expand child options so that
nested `OptionsNode`s are not placed inside a `SequenceNode`.
- Update `_join` to accept `Iterable<SequenceNode>` and flatten child
node sequences directly into the resulting `SequenceNode`.
Co-authored-by: amanmaurya92 <[email protected]>
0 commit comments