Skip to content

Commit

Permalink
Update BoyerMooreMatcher.php
Browse files Browse the repository at this point in the history
  • Loading branch information
anhoder authored Sep 12, 2021
1 parent 70a9ed6 commit ad4f18b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BoyerMooreMatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ public function match(string $text, int $matchMode = self::MODE_ONLY_ONE): array
}
}

$i += ($steps >= 0 ? $steps : 1);
$i += max($steps, 1);
}

return $res;
Expand Down

0 comments on commit ad4f18b

Please sign in to comment.