We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
On windows machines, the following code:
toAbsoluteGlob("**/*.txt", { cwd: "/", root: "/" }))
Will output the following:
C:/**/*.txt
Expected: /**/*.txt
/**/*.txt
I'm thinking that perhaps the following:
if (rootDir) { rootDir = unixify(rootDir); if (process.platform === 'win32' || !isAbsolute(rootDir)) { rootDir = unixify(path.resolve(rootDir)); } }
Should maybe be changed to?
if (rootDir) { rootDir = unixify(rootDir); if (!isAbsolute(rootDir)) { rootDir = unixify(path.resolve(rootDir)); } }
The text was updated successfully, but these errors were encountered:
See my commit here. This might be considered a change of behaviour, but this allows for linux globs to be created on windows:
dsherret@7ca9987
Sorry, something went wrong.
want to do a PR so we can review?
@jonschlinkert done. I opened #16.
There was one slight issue with it a day ago on the linux CI, but it's good now.
No branches or pull requests
On windows machines, the following code:
Will output the following:
Expected:
/**/*.txt
I'm thinking that perhaps the following:
Should maybe be changed to?
The text was updated successfully, but these errors were encountered: