Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Handle division following line break

  • Loading branch information...
commit 35831611f670a1959cfb965acc61fdf45cf094c8 1 parent f581e7e
@mrclay mrclay authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 vendors/minify/lib/JSMin.php
View
4 vendors/minify/lib/JSMin.php
@@ -268,11 +268,11 @@ protected function action($command)
*/
protected function isRegexpLiteral()
{
- if (false !== strpos("(,=:[!&|?+-~*\n{", $this->a)) {
+ if (false !== strpos("(,=:[!&|?+-~*{;", $this->a)) {
// we obviously aren't dividing
return true;
}
- if (' ' === $this->a) {
+ if ($this->a === ' ' || $this->a === "\n") {
$length = strlen($this->output);
if ($length < 2) { // weird edge case
return true;
Please sign in to comment.
Something went wrong with that request. Please try again.