@graphteon/juricode
Version:
We are forging the future with lines of digital steel
10 lines • 433 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.extractNextPageFromLink = void 0;
const extractNextPageFromLink = (link) => {
const regex = /<[^>]*[?&]page=(\d+)(?:&[^>]*)?>; rel="next"/;
const match = link.match(regex);
return match ? parseInt(match[1], 10) : null;
};
exports.extractNextPageFromLink = extractNextPageFromLink;
//# sourceMappingURL=extract-next-page-from-link.js.map