summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2007-06-01 09:49:11 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2007-06-01 09:49:11 +0000
commita6c3b716d3c343686d652db6ee18cfd5dfce58e3 (patch)
tree6995e6e564ee5d6663c99e7b4700f7fcc4178fe5 /includes
parente6cf1995bfbb4a17ff4a61bac10ab398805c8c91 (diff)
downloadbrdo-a6c3b716d3c343686d652db6ee18cfd5dfce58e3.tar.gz
brdo-a6c3b716d3c343686d652db6ee18cfd5dfce58e3.tar.bz2
#119441: JavaScript aggregator/compressor by m3avrck and others. (tweak)
Diffstat (limited to 'includes')
-rw-r--r--includes/common.inc2
1 files changed, 1 insertions, 1 deletions
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+/', ''),