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

support globstar syntax in FilenameMatchs #39

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hhaensel
Copy link

This PR is the first part of the steps discussed in #38.

Add support for globstar syntax ("**") in occursin for FilenameMatchs

Currently globstar is only supported in pathname mode, because I first thought that it doesn't make sense if * already matches any character.
But now I think it would be useful, e.g. to support patterns like for gitignore. (Shouldn't be too difficult to implement, probably only removing some if clauses)

So happy to discuss this here.

There's a bunch of test cases in 'runtests.jl' (I have refactored the tests a bit by putting them in testsets.)

@hhaensel hhaensel mentioned this pull request Oct 4, 2024
@hhaensel
Copy link
Author

@vtjnash Shall we continue this PR?

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.

1 participant