1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-17 19:37:22 +02:00

Make it work

This commit is contained in:
Jan Brauer
2014-01-15 17:20:48 +01:00
parent b2c2e80cd0
commit 9db532aaae

View File

@@ -26,10 +26,8 @@
* @todo more options support (or should just passthru them all?) * @todo more options support (or should just passthru them all?)
* *
* @package Minify * @package Minify
* @author Stephen Clay <steve@mrclay.org>
* @author Elan Ruusamäe <glen@delfi.ee>
*/ */
class Minify_ClosureCompiler { class Minify_FastClosureCompiler {
/** /**
* Filepath of the Closure Compiler jar file. This must be set before * Filepath of the Closure Compiler jar file. This must be set before
@@ -81,7 +79,7 @@ class Minify_ClosureCompiler {
), ),
$userOptions $userOptions
); );
$cmd = self::$binPath . ' ' . $cmd = self::$binPath . ' '
. (preg_match('/^[\\da-zA-Z0-9\\-]+$/', $o['charset']) . (preg_match('/^[\\da-zA-Z0-9\\-]+$/', $o['charset'])
? " --charset {$o['charset']}" ? " --charset {$o['charset']}"
: ''); : '');