From fd419431101e10c400ba83ff715937356f8fedd9 Mon Sep 17 00:00:00 2001 From: Eddie Kohler Date: Mon, 23 Sep 2024 09:44:31 -0400 Subject: [PATCH] Fix test --- src/searchparser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/searchparser.php b/src/searchparser.php index 44119917cc..e2e53b0331 100644 --- a/src/searchparser.php +++ b/src/searchparser.php @@ -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