We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3dc67d8 + 42a2586 commit 3a4c94fCopy full SHA for 3a4c94f
1 file changed
content/rest/using-the-rest-api/using-pagination-in-the-rest-api.md
@@ -127,7 +127,7 @@ const octokit = new Octokit({ {% ifversion ghes %}
127
{% endif %}});
128
129
async function getPaginatedData(url) {
130
- const nextPattern = /(?<=<)([\S]*)(?=>; rel="Next")/i;
+ const nextPattern = /(?<=<)([\S]*)(?=>; rel="next")/i;
131
let pagesRemaining = true;
132
let data = [];
133
0 commit comments