-
Notifications
You must be signed in to change notification settings - Fork 621
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
Added isGlob function #433
Conversation
@@ -138,4 +138,120 @@ testWalk( | |||
} | |||
); | |||
|
|||
test({ | |||
name: "isGlob: pattern to test", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There should be some test cases testing that something is not glob, eg. assert(!isGlob("foo.js"));
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test cases include both valid and invalid glob patterns,
I have used these test cases.
Is this an fs thing or a string thing? Glob patterns can be expressed in lots of other ways. Yes, they are mainly used to match lists of files, but they can also be used with URI matching too. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
In reference to issue #424