From a257a34448c1553d61c3ca74859a91eebe2aeb7f Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 2 May 2024 18:26:34 +0200 Subject: must ensure consecutive keys for now --- it_pipe.class | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'it_pipe.class') diff --git a/it_pipe.class b/it_pipe.class index cae4eb0..50a1f00 100644 --- a/it_pipe.class +++ b/it_pipe.class @@ -95,7 +95,7 @@ function map($expr) */ function filter($expr) { - $this->lines = it::filter($expr, $this->lines); + $this->lines = array_values(it::filter($expr, $this->lines)); return $this; } @@ -105,7 +105,7 @@ function filter($expr) */ function grep($regexp) { - $this->lines = it::grep($regexp, $this->lines); + $this->lines = array_values(it::grep($regexp, $this->lines)); return $this; } -- cgit v1.2.3