mirror of
https://github.com/joomla-extensions/patchtester.git
synced 2024-12-23 03:19:00 +00:00
Fix regex to support up to 3 digits for a page value (Fix #192)
This commit is contained in:
parent
1a5b47a108
commit
66caae6668
@ -352,7 +352,7 @@ class PullsModel extends \JModelDatabase
|
||||
$linkHeader = $linkHeader[0];
|
||||
}
|
||||
|
||||
preg_match('/(\?page=[0-9]&per_page=' . $batchSize . '+>; rel=\"last\")/', $linkHeader, $matches);
|
||||
preg_match('/(\?page=[0-9]{1,3}&per_page=' . $batchSize . '+>; rel=\"last\")/', $linkHeader, $matches);
|
||||
|
||||
if ($matches && isset($matches[0]))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user