Skip to content

iswindows returns false in windows #2

@tetreum

Description

@tetreum

I'm on windows 10 64bit -> process.platform == win32. But your code is:

https://github.com/jonschlinkert/is-invalid-path/blob/master/index.js#L11

const isWindows = (opts = {}) => process.platform !== 'win32' || opts.windows === true;

I had to change it to:

const isWindows = (opts = {}) => process.platform === 'win32' || opts.windows === true;

I'm confused to be the first to notice this :S

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions