diff options
author | Urban Müller | 2011-11-15 14:42:47 +0000 |
---|---|---|
committer | Urban Müller | 2011-11-15 14:42:47 +0000 |
commit | 7398d6edc77b0c641b12912975cfd3ecf87119eb (patch) | |
tree | c4f21479af6781b6c194dbd75c0a67d09391f307 /it.class | |
parent | 62a80d4a07941b1783dcbd3151f33f8f2c3b9cfa (diff) | |
download | itools-7398d6edc77b0c641b12912975cfd3ecf87119eb.tar.gz itools-7398d6edc77b0c641b12912975cfd3ecf87119eb.tar.bz2 itools-7398d6edc77b0c641b12912975cfd3ecf87119eb.zip |
handle limit
Diffstat (limited to 'it.class')
-rw-r--r-- | it.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 { |