We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cc9f65 commit 2773b7eCopy full SHA for 2773b7e
GitHubAnalytics.psm1
@@ -1052,11 +1052,11 @@ function Get-NextResultPage
1052
return $null
1053
}
1054
1055
- $nextLinkString = $jsonResult.Headers.Link.Split(',')[0]
+ $nextLinkString = $jsonResult.Headers.Link.Split(',').Where{ $_ -match 'rel="next"' }
1056
1057
# Get url query for the next page
1058
$query = $nextLinkString.Split(';')[0].replace('<','').replace('>','')
1059
- if ($query -notmatch '&page=1')
+ if ($query -notmatch '&page=1>')
1060
{
1061
return $query
1062
@@ -1197,4 +1197,4 @@ function Get-WeekDate
1197
1198
1199
return $beginningsOfWeeks
1200
-}
+}
0 commit comments