diff options
author | Urban Müller | 2024-05-02 18:26:34 +0200 |
---|---|---|
committer | Urban Müller | 2024-05-02 18:26:34 +0200 |
commit | a257a34448c1553d61c3ca74859a91eebe2aeb7f (patch) | |
tree | 3701531bfd5ca1a3677e9eec981a1f491acdde96 /it_pipe.class | |
parent | 97dea4eda39c28306b3f3685a6165aef78ae8e38 (diff) | |
download | itools-a257a34448c1553d61c3ca74859a91eebe2aeb7f.tar.gz itools-a257a34448c1553d61c3ca74859a91eebe2aeb7f.tar.bz2 itools-a257a34448c1553d61c3ca74859a91eebe2aeb7f.zip |
must ensure consecutive keys for now
Diffstat (limited to 'it_pipe.class')
-rw-r--r-- | it_pipe.class | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |