diff options
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 30e89e5..2de176b 100644 --- a/it_pipe.class +++ b/it_pipe.class @@ -103,9 +103,9 @@ function filter($expr) /** * Filter lines by a regexp */ -function grep($regexp) +function grep($regexp, $p = []) { - $this->lines = array_values(it::grep($regexp, $this->lines)); + $this->lines = array_values(it::grep($regexp, $this->lines, $p)); return $this; } |