Skip to content

Commit

Permalink
backport of mrclay/jsmin-php#12, should fix #416
Browse files Browse the repository at this point in the history
  • Loading branch information
futtta committed Apr 6, 2024
1 parent 67c3e53 commit c24b41f
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 @@ -335,7 +335,7 @@ protected function get()
return $c;
}
}
if (ord($c) >= self::ORD_SPACE || $c === "\n" || $c === null) {
if ($c === null || ord($c) >= self::ORD_SPACE || $c === "\n") {
return $c;
}
if ($c === "\r") {
Expand Down

0 comments on commit c24b41f

Please sign in to comment.