From 6f3dfa256716316809675b591afc5e80274100e1 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 19 Mar 2025 14:13:01 +0100 Subject: invert can never be set here --- it.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/it.class b/it.class index 59a0c94..7422d38 100644 --- a/it.class +++ b/it.class @@ -564,7 +564,7 @@ static function replace($replacements, $string, $p = array()) static function grep($pattern, $array, $p = array()) { if (!preg_match('/\\\\[wb]|[!\x80-\xff]|\[\[:/i', $pattern) && !$p) - $result = preg_grep('!' . $pattern . '!i' . (ini_get('default_charset') == 'utf-8' ? 'u' : ''), $array, $p['invert'] ? PREG_GREP_INVERT : 0); # fast path + $result = preg_grep('!' . $pattern . '!i' . (ini_get('default_charset') == 'utf-8' ? 'u' : ''), $array); # fast path else $result = preg_grep(it::convertregex($pattern, $p), $array, $p['invert'] ? PREG_GREP_INVERT : 0); -- cgit v1.2.3