Add detection for CSV

This commit is contained in:
Yaroslav Shirokov
2013-04-04 14:01:09 -07:00
parent b99abba27f
commit b68732f0c7
3 changed files with 14 additions and 0 deletions

View File

@@ -158,6 +158,13 @@ module Linguist
extname.downcase == '.stl'
end
# Public: Is this blob a CSV file?
#
# Return true or false
def csv?
text? && extname.downcase == '.csv'
end
# Public: Is the blob a PDF?
#
# Return true or false