Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
kohler committed Sep 23, 2024
1 parent 159b10b commit fd41943
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/searchparser.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function shift_balanced_parens($endchars = null, $allow_empty = false) {
$pos0 = $this->pos;
$pos1 = self::span_balanced_parens($this->str, $pos0, $endchars, $allow_empty);
$this->set_span_and_pos($pos1 - $pos0);
return substr($this->str, $pos0, $pos1 - $pos0);
return substr($this->str, $pos0, $this->last_pos - $pos0);
}

/** @param string $re
Expand Down

0 comments on commit fd41943

Please sign in to comment.