Permalink
Browse files

Handle division following line break

  • Loading branch information...
1 parent f581e7e commit 35831611f670a1959cfb965acc61fdf45cf094c8 @mrclay mrclay committed Apr 1, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 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;

0 comments on commit 3583161

Please sign in to comment.