Skip to content

Commit

Permalink
(re-)introduce template literal support in JSmin.php (see https://wor…
Browse files Browse the repository at this point in the history
  • Loading branch information
futtta committed Dec 6, 2018
1 parent d94394c commit 4e7fa42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/external/php/jsmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ protected function action($command)
// fallthrough intentional
case self::ACTION_DELETE_A: // 2
$this->a = $this->b;
if ($this->a === "'" || $this->a === '"') { // string literal
if ($this->a === "'" || $this->a === '"'|| $this->a === '`') { // string/template literal
$str = $this->a; // in case needed for exception
for(;;) {
$this->output .= $this->a;
Expand Down

0 comments on commit 4e7fa42

Please sign in to comment.