Skip to content

Commit

Permalink
fix issue with loopRegexes
Browse files Browse the repository at this point in the history
  • Loading branch information
jszobody committed Jan 29, 2025
1 parent c9a1a2f commit d492806
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ private function loopRegexes($regexes, $str, $mode = "match", $highestPosition =
{
$minLength = $mode === "split" ? 1 : 0;
$maxLength = strlen($str);
$match = null;

foreach ($regexes as $regex) {
$currentMatch = [];
Expand Down

0 comments on commit d492806

Please sign in to comment.