-
Notifications
You must be signed in to change notification settings - Fork 103
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
Glob specification is not clear #528
Comments
@Conaclos thanks for bringing this to our attention. I think the specification is unclear at that point because I'm fact two separate technologies seem to apply: glob and brace expansion. I need to do further research on that topic. |
Feel free to tag me if you need a review or some help. |
The The behavior specified through the Maybe @cxw42 knows more, as they were the last to modify those tests. |
I don't think we test for unicode, so it depends on the regex engine used by your core. I agree it would be good to specify this and add tests.
Another we don't test for, so it's core-specific. In the C core (reference implementation), it's treated like
Yes, and we do test for this.
Yes
Yes
Not in the C core, but I don't see that we test for that.
Not in the C core, but I don't see that we test for that.
Yes, in the C core, but I don't see that we test for that. Re. numeric ranges, see #371 for more discussion. |
Moving to the main issue tracker for visibility. |
This is related to editorconfig/specification#45.
When reading the Glob Expression section of the specification, I have several questions unanswered:
Globs from
.gitIgnore
are not unicode-aware.This means that the globs
[é]
and?
don't matché
.***
?Usually glob libraries treat it as a single star, or as an invalid glob expression.
/
?Usually glob libraries don't allow that.
{s1,s2,s3}
contain nested glob expressions? e.g.{*.json,*.toml}
.{s1,s2,s3}
contain empty strings? e.g.{*.gen,}.json
.{num1..num2}
allow reversed ranges such as{1..0}
?{num1..num2}
allow numbers with leading zeros such as{01..02}
If yes, is this equivalent to
[12]
or0[12]
?{num1..num2}
allow numbers with a+
sign? e.g.{+1..2}
?Thanks!
The text was updated successfully, but these errors were encountered: