mirror of
https://github.com/ksherlock/gopher.git
synced 2026-04-20 06:16:48 +00:00
makefile is text
This commit is contained in:
+5
-2
@@ -17,7 +17,8 @@ TEXT = {
|
||||
".text" => true,
|
||||
".rb" => true,
|
||||
'.mk' => true,
|
||||
'.asm' => true
|
||||
'.asm' => true,
|
||||
'makefile' => true
|
||||
}
|
||||
|
||||
def do_error(client, message)
|
||||
@@ -29,9 +30,11 @@ end
|
||||
|
||||
def get_type(path)
|
||||
|
||||
ext = File.extname(path).downcase
|
||||
path = path.downcase
|
||||
ext = File.extname(path)
|
||||
|
||||
return 0 if TEXT[ext]
|
||||
return 0 if TEXT[path]
|
||||
return 9
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user