summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorUrban Müller2011-11-15 14:42:47 +0000
committerUrban Müller2011-11-15 14:42:47 +0000
commit7398d6edc77b0c641b12912975cfd3ecf87119eb (patch)
treec4f21479af6781b6c194dbd75c0a67d09391f307 /it.class
parent62a80d4a07941b1783dcbd3151f33f8f2c3b9cfa (diff)
downloaditools-7398d6edc77b0c641b12912975cfd3ecf87119eb.tar.gz
itools-7398d6edc77b0c641b12912975cfd3ecf87119eb.tar.bz2
itools-7398d6edc77b0c641b12912975cfd3ecf87119eb.zip
handle limit
Diffstat (limited to 'it.class')
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
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
{