Skip to content

Commit 66caae6

Browse files
author
Michael Babker
committed
Fix regex to support up to 3 digits for a page value (Fix #192)
1 parent 1a5b47a commit 66caae6

File tree

1 file changed

+1
-1
lines changed
  • administrator/components/com_patchtester/PatchTester/Model

1 file changed

+1
-1
lines changed

administrator/components/com_patchtester/PatchTester/Model/PullsModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ public function requestFromGithub($page)
352352
$linkHeader = $linkHeader[0];
353353
}
354354

355-
preg_match('/(\?page=[0-9]&per_page=' . $batchSize . '+>; rel=\"last\")/', $linkHeader, $matches);
355+
preg_match('/(\?page=[0-9]{1,3}&per_page=' . $batchSize . '+>; rel=\"last\")/', $linkHeader, $matches);
356356

357357
if ($matches && isset($matches[0]))
358358
{

0 commit comments

Comments
 (0)