Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
a6c3b716
Commit
a6c3b716
authored
Jun 01, 2007
by
Steven Wittens
Browse files
#119441
: JavaScript aggregator/compressor by m3avrck and others. (tweak)
parent
e6cf1995
Changes
1
Show whitespace changes
Inline
Side-by-side
includes/common.inc
View file @
a6c3b716
...
...
@@ -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+/'
,
''
),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment