Tags: SimpleUpdates/minify
Tags
Merge pull request matthiasmullie#62 from EkkoSense/master Allow URL-rewriting without saving the minified content to the file system
Don't collapse line feeds after "return" return is not guaranteed to be followed by a return value. It could just be "return", followed by nothing (void return), not even a semicolon, just line feed (ASI) Whatever is next could, for example, be another operator. We may just need ASI to kick in there, so keep the line feed after return. Fixes issue matthiasmullie#54
Don't convert standalone arrays "return" looks like it could be a variable of which ['x'] is a key. I've improved the code to also check for keywords. If whatever preceeds it is one of the keywords, don't convert. Fixes issue matthiasmullie#44
Make comments-regex quantifiers posessive Was prone to hit PREG_BACKTRACK_LIMIT_ERROR. Should also improve performance. Fixes matthiasmullie#42
PreviousNext