Skip to content

fix: fix directory include pattern matching and normalize Windows paths #217

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

Merged
merged 1 commit into from
Mar 6, 2025

Conversation

filipchristiansen
Copy link
Contributor

@filipchristiansen filipchristiansen commented Mar 6, 2025

This PR introduces improvements to cross-platform path handling and directory inclusion:

  1. Windows Path Normalization
    Backslashes are now converted to forward slashes in _parse_patterns, ensuring consistent pattern matching on Windows, macOS, and Linux.

  2. Directory Include Pattern Handling
    If the path is a directory, a trailing slash is appended (e.g., src/), so that patterns like src/* properly match directories.

Copy link
Member

@cyclotruc cyclotruc left a comment

Choose a reason for hiding this comment

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

Nice thank you!

@cyclotruc cyclotruc merged commit f58a8cc into main Mar 6, 2025
18 checks passed
@cyclotruc cyclotruc deleted the fix/dir-include-pattern-matching branch March 6, 2025 22:59
filipchristiansen added a commit that referenced this pull request Mar 13, 2025
…ns (#217)

Signed-off-by: Filip Christiansen <22807962+filipchristiansen@users.noreply.github.com>
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