Compile a .nomonicignore glob pattern into a regular expression.
.nomonicignore
Supported glob syntax:
*
/
**
?
A glob pattern string (e.g. "drizzle/**").
"drizzle/**"
A compiled RegExp that can be passed to isIgnored.
const re = compilePattern('drizzle/**')re.test('drizzle/migrations/001.sql') // true Copy
const re = compilePattern('drizzle/**')re.test('drizzle/migrations/001.sql') // true
Compile a
.nomonicignoreglob pattern into a regular expression.Supported glob syntax:
*matches any characters except/**matches zero or more directories?matches a single character except//anchors the pattern to the repository root/matches a directory and everything inside it