Permalink
Browse files

Fix issue #116: Wrong input file mime type

  • Loading branch information...
1 parent 8a0c738 commit f7720d34c2912c5e2dba8a8325f84ae84d81895e @miripiruni miripiruni committed Oct 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/cli.php
View
@@ -97,7 +97,7 @@ function tool($argc, $argv){
}
elseif($this->out != null){
echo "Sorting ".$this->in."...\n";
- if (mime_content_type($this->in) === 'text/plain') {
+ if (preg_match('/^text/', mime_content_type($this->in))) {
$result = $c->csscomb(file_get_contents($this->in));
file_put_contents($this->out, $result);
} else {

0 comments on commit f7720d3

Please sign in to comment.