mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Add binary & ascii STLs and OBJs
This commit is contained in:
@@ -142,6 +142,13 @@ module Linguist
|
||||
['.png', '.jpg', '.jpeg', '.gif'].include?(extname)
|
||||
end
|
||||
|
||||
# Public: Is the blob a support 3D model format?
|
||||
#
|
||||
# Return true or false
|
||||
def solid?
|
||||
['.stl', '.obj'].include?(extname)
|
||||
end
|
||||
|
||||
MEGABYTE = 1024 * 1024
|
||||
|
||||
# Public: Is the blob too big to load?
|
||||
|
||||
Reference in New Issue
Block a user