Run into the same problem and fixed the pagination by applying the same principle used in the first post
// Check for true offset
if ( count($limit_matches) >= 5 && $limit_matches[1] != '0' ) {
$true_offset = true;
} elseif ( count($limit_matches) >= 5 && $limit_matches[1] == '0' ) {
$limit_matches[1] = $limit_matches[4];
}
since the regular expression added the support for ; the number of matches should be increased in both comparisons