MCPcopy
hub / github.com/vercel/next.js / isMatchingPattern

Function isMatchingPattern

run-tests.js:196–202  ·  view source on GitHub ↗
(pattern, file)

Source from the content-addressed store, hash-verified

194}
195
196const isMatchingPattern = (pattern, file) => {
197 if (pattern instanceof RegExp) {
198 return pattern.test(file)
199 } else {
200 return file.startsWith(pattern)
201 }
202}
203
204async function getTestTimings() {
205 if (!kvClient) {

Callers 1

mainFunction · 0.85

Calls 2

startsWithMethod · 0.80
testMethod · 0.65

Tested by

no test coverage detected