summaryrefslogtreecommitdiff
path: root/it_pipe.class
diff options
context:
space:
mode:
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;
}