git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
34cb5b5
)
Reverting my packer changes - need more testing.
author
John Resig
<jeresig@gmail.com>
Tue, 27 Feb 2007 20:37:46 +0000
(20:37 +0000)
committer
John Resig
<jeresig@gmail.com>
Tue, 27 Feb 2007 20:37:46 +0000
(20:37 +0000)
build/js/pack.js
patch
|
blob
|
history
diff --git
a/build/js/pack.js
b/build/js/pack.js
index
2c13dfb
..
56bfdd1
100644
(file)
--- a/
build/js/pack.js
+++ b/
build/js/pack.js
@@
-110,7
+110,7
@@
function pack(_script, _encoding, _fastDecode, _specialChars) {
var $parser = new ParseMaster;
var $encode = _getEncoder(_encoding);
// for high-ascii, don't encode single character low-ascii
var $parser = new ParseMaster;
var $encode = _getEncoder(_encoding);
// for high-ascii, don't encode single character low-ascii
- var $regexp = (_encoding > 62) ? /\w\w+/ : /(\(\)|\){|var |return |&&|==|typeof |function\(?|if\(|for\(|while\(|[a-zA-Z0-9]+|\)}|\[\d\])/;
+ var $regexp = (_encoding > 62) ? /\w\w+/ : /\w+/;
// build the word list
$keywords = _analyze($script, _globalize($regexp), $encode);
var $encoded = $keywords.$encoded;
// build the word list
$keywords = _analyze($script, _globalize($regexp), $encode);
var $encoded = $keywords.$encoded;