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 7fefd14Copy full SHA for 7fefd14
GitHubAnalytics.psm1
@@ -1052,11 +1052,14 @@ 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
+ if( $nextLinkString.Count -eq 0){
1057
+ return $null
1058
+ }
1059
1060
# Get url query for the next page
1061
$query = $nextLinkString.Split(';')[0].replace('<','').replace('>','')
- if ($query -notmatch '&page=1')
1062
+ if ($query -notmatch '&page=1>')
1063
{
1064
return $query
1065
@@ -1197,4 +1200,4 @@ function Get-WeekDate
1197
1200
1198
1201
1199
1202
return $beginningsOfWeeks
-}
1203
+}
0 commit comments