function matchPageMiddlewareTarget(pathname, target) {
  if (target instanceof RegExp) {
    return target.test(pathname);
  }
  if (target.endsWith("*")) {
    return pathname.startsWith(target.slice(0, -1));
  }
  return pathname === target;
}
const CONTINUE_PAGE_MIDDLEWARE = { action: "continue" };
export {
  CONTINUE_PAGE_MIDDLEWARE,
  matchPageMiddlewareTarget
};
//# sourceMappingURL=page.js.map
