Skip to content

Conversation

@lhecker
Copy link
Member

@lhecker lhecker commented Jan 20, 2026

Supports * and ** patterns. That's enough for our upcoming purposes.

@lhecker lhecker requested review from DHowett and johnturek January 20, 2026 18:29
// For convenience, /**/ also matches /.
if px >= 3
&& px < pattern.len()
&& pattern[px] == b'/'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we use is_separator so we support \**\ as well?

} else {
// single star - does not match path separators
// Try to match at nx. If that doesn't work out, restart at nx+1 next.
next_px = px;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You never reset is_double_star. I feel like that means **/foo/*/bar will match a/b/c/foo/d/e/f/bar incorrectly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants