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

remove is-odd #7

Closed
wants to merge 3 commits into from
Closed

remove is-odd #7

wants to merge 3 commits into from

Conversation

jsfuchs
Copy link

@jsfuchs jsfuchs commented Dec 21, 2017

Shouldn't use is-odd for something that is guaranteed to be a number

Shouldn't use is-odd for something that is guaranteed to be a number
lib/parsers.js Outdated
@@ -95,7 +95,7 @@ module.exports = function(nanomatch, options) {
if (!m) return;
var val = m[0];

var isNegated = val.length % 2 = 1;
var isNegated = val.length % 2 === 1;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for clearly demonstrating the value of modules by screwing up something this simple.

@jonschlinkert
Copy link
Member

As I mentioned in my comment I'm a fan of modules precisely because of what you demonstrated.

@micromatch micromatch locked and limited conversation to collaborators Dec 21, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants