From 5a3294d887f0a627e55c4502ee6e9413d13cc7d0 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 29 Feb 2012 13:22:58 +0000 Subject: 10% speedup for it::convertregex --- it.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it.class') 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"); -- cgit v1.2.3