Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix toplevel wildcard matching #39

Merged
merged 1 commit into from
Feb 6, 2024
Merged

Fix toplevel wildcard matching #39

merged 1 commit into from
Feb 6, 2024

Conversation

cmbartschat
Copy link

Context

We didn't have a test case on just /* in the sparse file so there was an edge case not handled in pattern_matches_path. That was obscuring the fact that we were using foreach instead of rforeach in the path validation logic. Doesn't look like that typo happened anywhere else in the file.

Testing

Without the wildcard fix:

Screenshot 2024-02-05 at 3 58 59 PM

Without the rforeach fix:

Screenshot 2024-02-05 at 4 00 08 PM

@cmbartschat cmbartschat merged commit 2e07ab3 into main Feb 6, 2024
10 of 26 checks passed
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.

2 participants