From 5df6b47f8a200b40f9278c221c7aa537d3d3c832 Mon Sep 17 00:00:00 2001 From: Dominic Saadi Date: Wed, 7 Sep 2022 17:31:03 +0900 Subject: [PATCH] fix: trim `nextLink` before slicing (#309) fix: trim `nextLink` before slicing --- src/repo/github.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/repo/github.js b/src/repo/github.js index be67140..15261e6 100644 --- a/src/repo/github.js +++ b/src/repo/github.js @@ -45,7 +45,7 @@ function getNextLink(link) { return null } - return nextLink.split(';')[0].slice(1, -1) + return nextLink.split(';')[0].trim().slice(1, -1) } function getContributorsPage(githubUrl, optionalPrivateToken) {