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 47cef2093892..ef1498a76c4b 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 = [];