summaryrefslogtreecommitdiff
path: root/it_pipe.class
diff options
context:
space:
mode:
authorUrban Müller2024-05-02 18:26:34 +0200
committerUrban Müller2024-05-02 18:26:34 +0200
commita257a34448c1553d61c3ca74859a91eebe2aeb7f (patch)
tree3701531bfd5ca1a3677e9eec981a1f491acdde96 /it_pipe.class
parent97dea4eda39c28306b3f3685a6165aef78ae8e38 (diff)
downloaditools-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.class4
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;
}