From 97d026fb09220338f934d5318816a311c4f74b80 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Fri, 14 Nov 2014 11:58:45 +0100 Subject: [PATCH] Update JShrink to version 1.0.1 refs #6165 refs #6166 --- library/vendor/JShrink/Minifier.php | 1 + library/vendor/JShrink/SOURCE | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/library/vendor/JShrink/Minifier.php b/library/vendor/JShrink/Minifier.php index c8f17d93e..22ae087a0 100644 --- a/library/vendor/JShrink/Minifier.php +++ b/library/vendor/JShrink/Minifier.php @@ -155,6 +155,7 @@ class Minifier { $this->options = array_merge(static::$defaultOptions, $options); $js = str_replace("\r\n", "\n", $js); + $js = str_replace('/**/', '', $js); $this->input = str_replace("\r", "\n", $js); // We add a newline to the end of the script to make it easier to deal diff --git a/library/vendor/JShrink/SOURCE b/library/vendor/JShrink/SOURCE index 721d70182..fb7b42024 100644 --- a/library/vendor/JShrink/SOURCE +++ b/library/vendor/JShrink/SOURCE @@ -1 +1,4 @@ -https://github.com/tedivm/JShrink/releases/tag/v1.0.0 +curl https://codeload.github.com/tedious/JShrink/tar.gz/v1.0.1 -o JShrink-1.0.1.tar.gz +tar xzf JShrink-1.0.1.tar.gz --strip-components 1 JShrink-1.0.1/LICENSE +tar xzf JShrink-1.0.1.tar.gz --strip-components 3 JShrink-1.0.1/src/JShrink/Minifier.php +rm JShrink-1.0.1.tar.gz