Skip to content

Conversation

@RobinMalfait
Copy link
Member

This PR adds a new ** variant to target any level of children.

This is very similar to the * variant, the big difference is that:

  • * applies to direct children only
  • ** applies to any level of children

Thought of this because of all the recent work we did around globs. So a good analogy for this is glob syntax where you have the exact same difference. *.html vs **/*.html.

@RobinMalfait RobinMalfait requested a review from a team as a code owner November 7, 2024 11:35
@RobinMalfait RobinMalfait force-pushed the feat/add-any-children-variant branch from a096a24 to e43ccd1 Compare November 7, 2024 12:09
This is very similar to `*`, the big difference is that:

- `*` applies to direct children
- `**` applies to any level of children

Thought of this because of all the recent work we did around globs. So a
good analogy for this is glob syntax where you have the exact same
difference. `*.html` vs `**/*.html`.
@RobinMalfait RobinMalfait force-pushed the feat/add-any-children-variant branch from e43ccd1 to 08953a1 Compare November 7, 2024 12:25
Copy link
Contributor

@thecrypticace thecrypticace left a comment

Choose a reason for hiding this comment

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

I'm a fan. Can we verify that Oxide picks this up?

@RobinMalfait
Copy link
Member Author

ensure *:flex and **:flex are picked up

@thecrypticace sure thing! Added an integration test: b1ab2b8

@thecrypticace
Copy link
Contributor

cool — I was kinda just thinking adding the test to the Rust suite but this works too!

@RobinMalfait RobinMalfait merged commit 3821f69 into next Nov 7, 2024
1 check passed
@RobinMalfait RobinMalfait deleted the feat/add-any-children-variant branch November 7, 2024 15:48
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