From 7398d6edc77b0c641b12912975cfd3ecf87119eb Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Tue, 15 Nov 2011 14:42:47 +0000 Subject: handle limit --- it.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it.class') diff --git a/it.class b/it.class index dd3a118..1f39013 100644 --- a/it.class +++ b/it.class @@ -397,7 +397,7 @@ static function replace($replacements, $string, $p = array()) foreach ($replacements as $pattern => $dummy) $patterns[] = !preg_match('/\\\\[wb]|[!\x80-\xff]|\[\[:/i', $pattern) && !$p ? "!$pattern!i" : it::convertregex($complex = $pattern, $p); - if (!$complex) + if (!$complex && !$p) $result = preg_replace($patterns, $replacements, $string); else { -- cgit v1.2.3