Skip to content

Commit

Permalink
Remove unnecessary lookarounds in pagination docs
Browse files Browse the repository at this point in the history
  • Loading branch information
BeksOmega authored Dec 8, 2024
1 parent b8d2c39 commit a8c7f6b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ const octokit = new Octokit({ {% ifversion ghes %}
{% endif %}});

async function getPaginatedData(url) {
const nextPattern = /(?<=<)([\S]*)(?=>; rel="Next")/i;
const nextPattern = /<([\S]*); rel="next"/i;
let pagesRemaining = true;
let data = [];

Expand Down

0 comments on commit a8c7f6b

Please sign in to comment.