We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
path.sep
1 parent ea7ceb0 commit b3bba07Copy full SHA for b3bba07
1 file changed
src/cli/util.js
@@ -400,7 +400,9 @@ function createIgnorerFromContextOrDie(context) {
400
function eachFilename(context, patterns, callback) {
401
// workaround for fast-glob on Windows ref:
402
// https://github.com/mrmlnc/fast-glob#how-to-write-patterns-on-windows
403
- patterns = patterns.map(path => path.replace(/\\/g, "/"));
+ if (path.sep === "\\") {
404
+ patterns = patterns.map(path => path.replace(/\\/g, "/"));
405
+ }
406
407
// The '!./' globs are due to https://github.com/prettier/prettier/issues/2110
408
const ignoreNodeModules = context.argv["with-node-modules"] !== true;
0 commit comments