diff --git a/content/rest/using-the-rest-api/using-pagination-in-the-rest-api.md b/content/rest/using-the-rest-api/using-pagination-in-the-rest-api.md index 55780cf8feb9..dca65ec9c0e6 100644 --- a/content/rest/using-the-rest-api/using-pagination-in-the-rest-api.md +++ b/content/rest/using-the-rest-api/using-pagination-in-the-rest-api.md @@ -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 = [];