summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Flatz2014-09-15 17:04:49 +0200
committerDavid Flatz2014-09-15 17:04:49 +0200
commit9710e03e57e012cad6a466945fec95383f1d32da (patch)
tree670fdbdc5b36027b629b71fe8d40f75f4c939f14
parente78701e60b396597e06ef7491f249797c9b22897 (diff)
downloaditools-9710e03e57e012cad6a466945fec95383f1d32da.tar.gz
itools-9710e03e57e012cad6a466945fec95383f1d32da.tar.bz2
itools-9710e03e57e012cad6a466945fec95383f1d32da.zip
revert last commit since it didn't work
-rw-r--r--itjs.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/itjs.class b/itjs.class
index 7ac7c1f..fb3ac13 100644
--- a/itjs.class
+++ b/itjs.class
@@ -171,7 +171,7 @@ static function strip($code)
{
if (!it::is_devel())
$code = preg_replace(array(
- '|(?<=\s//).*$|m', # we use a lookbehind assertion (?<=) to check for beginning of a comment and then strip the rest of the line. we need to keep the newline and // characters to prevent blackberry app from crashing sporadically on startup
+ '|\s//.*$|m',
'|\s+/\*.*?\*/|s', # MUST require at least one space before /* (jquery.js) but MUST NOT require space before */ (searchmap.js)
'|^\s+|m'
), array(), $code);