From dd96b0f34469f1581f6cc0a9be094bc17953f7c9 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Mon, 22 Dec 2025 16:57:59 +0100 Subject: support ["invert" => true] --- it_pipe.class | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'it_pipe.class') 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; } -- cgit v1.2.3