Skip to content

Commit

Permalink
Fix regex for getting link to next page
Browse files Browse the repository at this point in the history
  • Loading branch information
perlpunk committed Jul 22, 2018
1 parent 91275cd commit a78708f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/git-hub
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,7 @@ report-list-process() {
}

get-next-page-url() {
local regexp='Link: <(https:[^>]+)>; rel="next"'
local regexp='Link: .*<(https:[^>]+)>; rel="next"'
[[ -e $command_header_file ]] &&
[[ $(< "$command_header_file") =~ $regexp ]] &&
echo "${BASH_REMATCH[1]}"
Expand Down

0 comments on commit a78708f

Please sign in to comment.