summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it.class4
1 files changed, 3 insertions, 1 deletions
diff --git a/it.class b/it.class
index f3dd0a8..111ca70 100644
--- a/it.class
+++ b/it.class
@@ -315,7 +315,8 @@ static function toascii($text)
* @param $p['multiline'] add modifier m: ^ and $ match \n
* @param $p['singleline'] add modifier s: . matches \n
* @param $p['utf8'] add modifier u
- * @param $p['extended'] add modifier x
+ * @param $p['extended'] add modifier x (non signifcant whitespace)
+ * @param $p['exec'] add modifier e (execute replace string as php-code)
* @return converted regex to use with preg
*/
static function convertregex($pattern, $p = array())
@@ -331,6 +332,7 @@ static function convertregex($pattern, $p = array())
'singleline' => 's',
'utf8' => 'u',
'extended' => 'x',
+ 'exec' => 'e',
) as $key => $mod)
{
if ($p[$key])