@@ -7751,18 +7751,8 @@ const factory = options => new Ignore(options)
7751
7751
const isPathValid = path =>
7752
7752
checkPath(path && checkPath.convert(path), path, RETURN_FALSE)
7753
7753
7754
-
7755
- // Windows
7756
- // --------------------------------------------------------------
7757
7754
/* istanbul ignore next */
7758
- if (
7759
- // Detect `process` so that it can run in browsers.
7760
- typeof process !== 'undefined'
7761
- && (
7762
- process.env && process.env.IGNORE_TEST_WIN32
7763
- || process.platform === 'win32'
7764
- )
7765
- ) {
7755
+ const setupWindows = () => {
7766
7756
/* eslint no-control-regex: "off" */
7767
7757
const makePosix = str => /^\\\\\?\\/.test(str)
7768
7758
|| /["<>|\u0000-\u001F]+/u.test(str)
@@ -7779,6 +7769,18 @@ if (
7779
7769
|| isNotRelative(path)
7780
7770
}
7781
7771
7772
+
7773
+ // Windows
7774
+ // --------------------------------------------------------------
7775
+ /* istanbul ignore next */
7776
+ if (
7777
+ // Detect `process` so that it can run in browsers.
7778
+ typeof process !== 'undefined'
7779
+ && process.platform === 'win32'
7780
+ ) {
7781
+ setupWindows()
7782
+ }
7783
+
7782
7784
// COMMONJS_EXPORTS ////////////////////////////////////////////////////////////
7783
7785
7784
7786
module.exports = factory
@@ -7790,6 +7792,9 @@ factory.default = factory
7790
7792
7791
7793
module.exports.isPathValid = isPathValid
7792
7794
7795
+ // For testing purposes
7796
+ define(module.exports, Symbol.for('setupWindows'), setupWindows)
7797
+
7793
7798
7794
7799
/***/ }),
7795
7800
0 commit comments