Reverting my packer changes - need more testing.
This commit is contained in:
parent
34cb5b5812
commit
09f5db51dc
|
@ -110,7 +110,7 @@ function pack(_script, _encoding, _fastDecode, _specialChars) {
|
||||||
var $parser = new ParseMaster;
|
var $parser = new ParseMaster;
|
||||||
var $encode = _getEncoder(_encoding);
|
var $encode = _getEncoder(_encoding);
|
||||||
// for high-ascii, don't encode single character low-ascii
|
// 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
|
// build the word list
|
||||||
$keywords = _analyze($script, _globalize($regexp), $encode);
|
$keywords = _analyze($script, _globalize($regexp), $encode);
|
||||||
var $encoded = $keywords.$encoded;
|
var $encoded = $keywords.$encoded;
|
||||||
|
|
Loading…
Reference in a new issue