From a6c3b716d3c343686d652db6ee18cfd5dfce58e3 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Fri, 1 Jun 2007 09:49:11 +0000 Subject: #119441: JavaScript aggregator/compressor by m3avrck and others. (tweak) --- includes/common.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/common.inc b/includes/common.inc index ae5d177f8..da7d6402d 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -1850,7 +1850,7 @@ function _drupal_compress_js($script) { array('/\\s+(\\/[^\\/\\n\\r\\*][^\\/\\n\\r]*\\/g?i?)/', '$1'), array('/[^\\w\\x24\\/\'"*)\\?:]\\/[^\\/\\n\\r\\*][^\\/\\n\\r]*\\/g?i?/', '$0'), // Protect spaces between keywords and variables - array('/(\\b|\\x24)\\s+(\\b|\\x24)/', '$1 $2'), + array('/(?<=[A-Za-z0-9_$])\\s+(?=[A-Za-z0-9_$])/', ' '), array('/([+\\-])\\s+([+\\-])/', '$1 $2'), // Remove all other white-space array('/\\s+/', ''), -- cgit v1.2.3