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: regex pattern matching #63

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

kounoike
Copy link

@kounoike kounoike commented Nov 9, 2023

#50 didn't fix #38.
because [[ "abc" == $pattern ]] is simple string match.
for regex match, should be [[ "abc" =~ $pattern ]].

this PR fix it.

this PR also fix document. ignore pattern is regex, NOT glob.

@khru khru mentioned this pull request Nov 9, 2023
@johnlk
Copy link
Collaborator

johnlk commented Apr 15, 2024

This change takes the wildcard matching and switches us to regex matching. Both are acceptable options. As a point of opinion, wildcard matching feels more ergonomic.

If we did want to support regex matching, maybe this should be another param like regex_files_to_ignore?

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.

Ignore files and folders by pattern?
2 participants