bunext/dist/utils/check-excluded-patterns.js

9 lines
272 B
JavaScript

export default function ({ path }) {
for (let i = 0; i < global.BUNEXT_CONSTANTS.RouteIgnorePatterns.length; i++) {
const regex = global.BUNEXT_CONSTANTS.RouteIgnorePatterns[i];
if (path.match(regex))
return true;
}
return false;
}