Skip to content

Commit

Permalink
Update compile.php
Browse files Browse the repository at this point in the history
Better not to remove whitespace if followed by backslash.

Fixes leproxy#88
  • Loading branch information
gtgt committed Jul 13, 2023
1 parent 4dc4144 commit a0c1c1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compile.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class_exists($class, true);
$last = substr($small, -1);
$next = isset($all[$i + 1]) ? substr(is_array($all[$i + 1]) ? $all[$i + 1][1] : $all[$i + 1], 0, 1) : ' ';

$token = (strpos('()[]{}<>;=+-*/%&|,.:?!@\'"' . "\r\n", $last) !== false || strpos('()[]{}<>;=+-*/%&|,.:?!@\'"' . '\\$', $next) !== false) ? '' : ' ';
$token = (strpos('()[]{}<>;=+-*/%&|,.:?!@\'"' . "\r\n", $last) !== false || strpos('()[]{}<>;=+-*/%&|,.:?!@\'"$', $next) !== false) ? '' : ' ';
}
}

Expand Down

0 comments on commit a0c1c1e

Please sign in to comment.