You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Create a regular expression from a parsed glob pattern.
269
+
*
270
+
* ```js
271
+
* const picomatch = require('picomatch');
272
+
* const state = picomatch.parse('*.js');
273
+
* // picomatch.compileRe(state[, options]);
274
+
*
275
+
* console.log(picomatch.compileRe(state));
276
+
* //=> /^(?:(?!\.)(?=.)[^/]*?\.js)$/
277
+
* ```
278
+
* @param {String} `state` The object returned from the `.parse` method.
279
+
* @param {Object} `options`
280
+
* @param {Boolean} `returnOutput` Implementors may use this argument to return the compiled output, instead of a regular expression. This is not exposed on the options to prevent end-users from mutating the result.
281
+
* @param {Boolean} `returnState` Implementors may use this argument to return the state from the parsed glob with the returned regular expression.
282
+
* @return {RegExp} Returns a regex created from the given pattern.
0 commit comments