* @param {string} pattern * @param {options} options * @returns {Minimatch}
(pattern, options = kEmptyObject)
| 110 | * @returns {Minimatch} |
| 111 | */ |
| 112 | function createMatcher(pattern, options = kEmptyObject) { |
| 113 | const opts = { |
| 114 | __proto__: null, |
| 115 | nocase: isWindows || isMacOS, |
| 116 | windowsPathsNoEscape: true, |
| 117 | nonegate: true, |
| 118 | nocomment: true, |
| 119 | optimizationLevel: 2, |
| 120 | platform: process.platform, |
| 121 | nocaseMagicOnly: true, |
| 122 | ...options, |
| 123 | }; |
| 124 | return new (lazyMinimatch().Minimatch)(pattern, opts); |
| 125 | } |
| 126 | |
| 127 | function cloneSet(values) { |
| 128 | const cloned = new SafeSet(); |
no test coverage detected
searching dependent graphs…