* Mon May 12 2025 Brian Read <brianr@koozali.org> 11.0.0-1.sme
- Adding SM2 panel [SME: 13004] - Upgrade to phpsysinfo 3.4.4 - Add code to delete inline styles and add css to make it look better. - version saved / built uses the static version, which means no drops downs and choices.
This commit is contained in:
@@ -159,8 +159,9 @@ class JavaScriptPacker
|
||||
{
|
||||
$parser = new ParseMaster();
|
||||
// replace: $name -> n, $$name -> na
|
||||
$parser->add('/((\\x24+)([a-zA-Z$_]+))(\\d*)/',
|
||||
array('fn' => '_replace_name')
|
||||
$parser->add(
|
||||
'/((\\x24+)([a-zA-Z$_]+))(\\d*)/',
|
||||
array('fn' => '_replace_name')
|
||||
);
|
||||
// replace: _name -> _0, double-underscore (__name) is ignored
|
||||
$regexp = '/\\b_[A-Za-z\\d]\\w*/';
|
||||
@@ -169,7 +170,8 @@ class JavaScriptPacker
|
||||
// quick ref
|
||||
$encoded = $keywords['encoded'];
|
||||
|
||||
$parser->add($regexp,
|
||||
$parser->add(
|
||||
$regexp,
|
||||
array(
|
||||
'fn' => '_replace_encoded',
|
||||
'data' => $encoded
|
||||
@@ -194,7 +196,8 @@ class JavaScriptPacker
|
||||
$encoded = $keywords['encoded'];
|
||||
|
||||
// encode
|
||||
$parser->add($regexp,
|
||||
$parser->add(
|
||||
$regexp,
|
||||
array(
|
||||
'fn' => '_replace_encoded',
|
||||
'data' => $encoded
|
||||
@@ -521,7 +524,7 @@ class JavaScriptPacker
|
||||
';
|
||||
//};
|
||||
/*
|
||||
' if (!\'\'.replace(/^/, String)) {
|
||||
' if (!\'\'.replace(/^/, String)) {
|
||||
// decode all the values we need
|
||||
while ($count--) $decode[$encode($count)] = $keywords[$count] || $encode($count);
|
||||
// global replacement function
|
||||
|
Reference in New Issue
Block a user