diff --git a/include/jshrink.class.php b/include/jshrink.class.php index b32807c4a..0229bd8a9 100644 --- a/include/jshrink.class.php +++ b/include/jshrink.class.php @@ -192,7 +192,7 @@ class JShrink_Minifier case "\n": // if the next line is something that can't stand alone // preserve the newline - if(strpos('(-+{[@', $this->b) !== false) + if($this->b !== false && strpos('(-+{[@', $this->b) !== false) { echo $this->a; $this->saveString(); @@ -239,7 +239,7 @@ class JShrink_Minifier if($this->a == '/' && ($this->b == '\'' || $this->b == '"')) { $this->saveRegex(); - continue; + continue 3; } echo $this->a;