From 9db532aaae73e69055eb0ac44181bf42e381d5d9 Mon Sep 17 00:00:00 2001 From: Jan Brauer Date: Wed, 15 Jan 2014 17:20:48 +0100 Subject: [PATCH] Make it work --- min/lib/Minify/FastClosureCompiler.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/min/lib/Minify/FastClosureCompiler.php b/min/lib/Minify/FastClosureCompiler.php index 2ace4d8..6ce990b 100644 --- a/min/lib/Minify/FastClosureCompiler.php +++ b/min/lib/Minify/FastClosureCompiler.php @@ -26,10 +26,8 @@ * @todo more options support (or should just passthru them all?) * * @package Minify - * @author Stephen Clay - * @author Elan Ruusamäe */ -class Minify_ClosureCompiler { +class Minify_FastClosureCompiler { /** * Filepath of the Closure Compiler jar file. This must be set before @@ -81,7 +79,7 @@ class Minify_ClosureCompiler { ), $userOptions ); - $cmd = self::$binPath . ' ' . + $cmd = self::$binPath . ' ' . (preg_match('/^[\\da-zA-Z0-9\\-]+$/', $o['charset']) ? " --charset {$o['charset']}" : '');