diff options
| author | Urban Müller | 2025-12-22 16:57:59 +0100 |
|---|---|---|
| committer | Urban Müller | 2025-12-22 16:57:59 +0100 |
| commit | dd96b0f34469f1581f6cc0a9be094bc17953f7c9 (patch) | |
| tree | 92a39b714a1430970f63102845cfbfe8b4097ee7 /it_pipe.class | |
| parent | 0087779e65db924729c8f0664955309ed96e83e1 (diff) | |
| download | itools-dd96b0f34469f1581f6cc0a9be094bc17953f7c9.tar.gz itools-dd96b0f34469f1581f6cc0a9be094bc17953f7c9.tar.bz2 itools-dd96b0f34469f1581f6cc0a9be094bc17953f7c9.zip | |
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; } |