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

Add support for {...} specifier #12

Open
hollasch opened this issue Jun 5, 2015 · 1 comment
Open

Add support for {...} specifier #12

hollasch opened this issue Jun 5, 2015 · 1 comment
Labels
Milestone

Comments

@hollasch
Copy link
Owner

hollasch commented Jun 5, 2015

The pattern a{c,g,l,p,r,t}e should match 'ace', 'age', 'ale', 'ape', 'are', 'ate'.

Stretch one would be {,x,y} to match '', 'x', and 'y'.

Stretch two would be to match {a?a,b?b,c?c}.

@hollasch hollasch self-assigned this Oct 19, 2016
@hollasch hollasch removed their assignment Oct 27, 2016
@hollasch hollasch modified the milestone: v1.0 Apr 5, 2017
@hollasch
Copy link
Owner Author

Note that this should also allow a user to specify multiple roots, like so:

pathmatch {D:\scratch;C:\scratch;%UserProfile%\scratch}/.../foo.cmd

Options (need a term for arguments inside braces) at the beginning of a pattern are a special case, and should be optimized as such.

In addition, consider implicit support for embedded spaces. That is, should we implicitly concatenate arguments when we have not encountered an expected closing brace? Inclined to think not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant