summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2012-02-29 13:22:58 +0000
committerUrban Müller2012-02-29 13:22:58 +0000
commit5a3294d887f0a627e55c4502ee6e9413d13cc7d0 (patch)
tree1918c73f707cd581acbaf8a634f611fdf99e1ab2
parentc0938f79a452c44e28fccc326775891ba6c743e3 (diff)
downloaditools-5a3294d887f0a627e55c4502ee6e9413d13cc7d0.tar.gz
itools-5a3294d887f0a627e55c4502ee6e9413d13cc7d0.tar.bz2
itools-5a3294d887f0a627e55c4502ee6e9413d13cc7d0.zip
10% speedup for it::convertregex
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it.class b/it.class
index 292c154..1382073 100644
--- a/it.class
+++ b/it.class
@@ -314,7 +314,7 @@ static function toascii($text)
* @param $p['extended'] add modifier x (non signifcant whitespace)
* @return converted regex to use with preg
*/
-static function convertregex($pattern, $p = array())
+static function convertregex($pattern, $p = null)
{
if ($p['exec'])
it::fatal("Option exec to it::replace has been removed for security reasons");