Python now supported as a language

Also minor fixes to Ruby's usage
This commit is contained in:
Matt Pass
2013-05-08 08:51:50 +01:00
parent eca4f8e06d
commit 3f15cb8fff
8 changed files with 49 additions and 46 deletions

View File

@@ -28,7 +28,7 @@ if ($_GET['action']=="load") {
finfo_close($finfoMIME);
} else {
$fileExt = pathinfo($file, PATHINFO_EXTENSION);
if (array_search($fileExt,array("coffee","css","htm","html","js","less","md","php","rb","ruby","txt","xml"))!==false) {$finfo = "text";};
if (array_search($fileExt,array("coffee","css","htm","html","js","less","md","php","py","rb","ruby","txt","xml"))!==false) {$finfo = "text";};
if (array_search($fileExt,array("gif","jpg","jpeg","png"))!==false) {$finfo = "image";};
}
if (strpos($finfo,"text")===0 || strpos($finfo,"empty")!==false) {