Commit a6c3b716 authored by Steven Wittens's avatar Steven Wittens

#119441: JavaScript aggregator/compressor by m3avrck and others. (tweak)

parent e6cf1995
......@@ -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+/', ''),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment