mirror of
https://github.com/matthiasmullie/minify.git
synced 2025-02-22 19:07:38 +01:00
parent
3176239d15
commit
272e461134
@ -318,7 +318,7 @@ abstract class Minify
|
||||
$minifier = $this;
|
||||
$callback = function ($match) use ($minifier) {
|
||||
// check the second index here, because the first always contains a quote
|
||||
if (!$match[2]) {
|
||||
if ($match[2] === '') {
|
||||
/*
|
||||
* Empty strings need no placeholder; they can't be confused for
|
||||
* anything else anyway.
|
||||
|
@ -679,6 +679,12 @@ BUG
|
||||
'if(!0){if(!0)console.log("test")}',
|
||||
);
|
||||
|
||||
// https://github.com/matthiasmullie/minify/issues/99
|
||||
$tests[] = array(
|
||||
'"object";"object2";"0";"1"',
|
||||
'"object";"object2";"0";"1"',
|
||||
);
|
||||
|
||||
//update tests' expected results for cross-system compatibility
|
||||
foreach ($tests as &$test) {
|
||||
if (!empty($test[1])) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user