From 55cf4ef2575924d4c8ad544e5f739b0b414c59c3 Mon Sep 17 00:00:00 2001 From: Matthias Mullie Date: Fri, 17 Nov 2017 17:18:14 +0100 Subject: [PATCH] Add test for #214 --- tests/js/JSTest.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/js/JSTest.php b/tests/js/JSTest.php index 282044e..5036a51 100644 --- a/tests/js/JSTest.php +++ b/tests/js/JSTest.php @@ -1189,6 +1189,13 @@ a = \'b\';', 'if(last){for(i=1;i<3;i++);}else if(first){for(i in list);}else{while(this.rm(name,check,!1));}', ); + // https://github.com/matthiasmullie/minify/issues/214 + $tests[] = array( + '/\/|\'/; +\'.ctd_panel_content .ctd_preview\';', + '/\/|\'/;\'.ctd_panel_content .ctd_preview\'', + ); + // known minified files to help doublecheck changes in places not yet // anticipated in these tests $files = glob(__DIR__.'/sample/minified/*.js');