-
Notifications
You must be signed in to change notification settings - Fork 16
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
ignoreFiles/includeFiles accepting Regex #91
Conversation
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.
Looks good overall, left some comments with changes that need to be done before we can merge it. Also, please remove the changes that this PR makes to package-lock.json
, looks like they're an artifact of your dev environment.
index.js
Outdated
@@ -53,6 +53,26 @@ module.exports = function postcssPrefixSelector(options) { | |||
}; | |||
}; | |||
|
|||
function ignoreFile(file, ignoreArr) { |
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.
I'd like to change the name of this function to be more descriptive of what it does, ex: isFileIgnored
index.js
Outdated
}); | ||
} | ||
|
||
function includeFile(file, includeArr) { |
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.
Same as above, please make the name more descriptive, like isFileIncluded
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.
Also, both these functions do basically the same thing. Can you merge them into one and give it a descriptive name?
Hey @mellis481, I reviewed this PR and it looks good, just needs a few more tweaks. Do you think you'll have time to address the comments in the near future? Let me know, thanks! |
Reverts package-lock.json
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.
Looks good now, thanks for contributing!
Thanks for creating an awesome library! |
No description provided.