mirror of
https://github.com/ksherlock/gopher.git
synced 2024-10-31 09:05:00 +00:00
makefile is text
This commit is contained in:
parent
f67e5f11a8
commit
ed6c2fc7f7
@ -17,7 +17,8 @@ TEXT = {
|
|||||||
".text" => true,
|
".text" => true,
|
||||||
".rb" => true,
|
".rb" => true,
|
||||||
'.mk' => true,
|
'.mk' => true,
|
||||||
'.asm' => true
|
'.asm' => true,
|
||||||
|
'makefile' => true
|
||||||
}
|
}
|
||||||
|
|
||||||
def do_error(client, message)
|
def do_error(client, message)
|
||||||
@ -29,9 +30,11 @@ end
|
|||||||
|
|
||||||
def get_type(path)
|
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[ext]
|
||||||
|
return 0 if TEXT[path]
|
||||||
return 9
|
return 9
|
||||||
|
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user