From 1f7439240599c145a2da2f0b7cf3edc3fe75c446 Mon Sep 17 00:00:00 2001 From: Platonides Date: Sun, 30 Jan 2011 14:19:55 +0000 Subject: [PATCH] ParseMaster is designed to use big regexes, with many starting characters. It makes sense to pcre_study() them. --- includes/libs/JavaScriptDistiller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/libs/JavaScriptDistiller.php b/includes/libs/JavaScriptDistiller.php index 358827ffe6..ff2a0b2848 100644 --- a/includes/libs/JavaScriptDistiller.php +++ b/includes/libs/JavaScriptDistiller.php @@ -161,7 +161,7 @@ class ParseMaster { foreach ($this->_patterns as $reg) { $regexp .= '(' . substr($reg[self::EXPRESSION], 1, -1) . ')|'; } - $regexp = substr($regexp, 0, -1) . '/'; + $regexp = substr($regexp, 0, -1) . '/S'; $regexp .= ($this->ignoreCase) ? 'i' : ''; $string = $this->_escape($string, $this->escapeChar); -- 2.20.1