evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
A utility that compiles glob patterns into regular expressions for custom pattern matching.
/**
* Compiles a glob pattern into a regular expression
* @param {string} pattern - The glob pattern to compile
* @returns {RegExp} The compiled regular expression
*/
function compilePattern(pattern) {}
/**
* Tests if a string matches the compiled pattern
* @param {string} input - The string to test
* @param {RegExp} regex - The compiled regular expression
* @returns {boolean} True if the string matches
*/
function testMatch(input, regex) {}
module.exports = {
compilePattern,
testMatch
};Provides glob pattern parsing and regex compilation support.