summaryrefslogtreecommitdiff
path: root/it_pipe.class
diff options
context:
space:
mode:
authorUrban Müller2025-12-22 16:57:59 +0100
committerUrban Müller2025-12-22 16:57:59 +0100
commitdd96b0f34469f1581f6cc0a9be094bc17953f7c9 (patch)
tree92a39b714a1430970f63102845cfbfe8b4097ee7 /it_pipe.class
parent0087779e65db924729c8f0664955309ed96e83e1 (diff)
downloaditools-dd96b0f34469f1581f6cc0a9be094bc17953f7c9.tar.gz
itools-dd96b0f34469f1581f6cc0a9be094bc17953f7c9.tar.bz2
itools-dd96b0f34469f1581f6cc0a9be094bc17953f7c9.zip
support ["invert" => true]HEADmaster
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 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;
}