mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-12-08 20:38:47 +00:00
Avoid using singular #extension
This commit is contained in:
@@ -110,8 +110,8 @@ module Linguist
|
|||||||
# A bit of an elegant hack. If the file is executable but extensionless,
|
# A bit of an elegant hack. If the file is executable but extensionless,
|
||||||
# append a "magic" extension so it can be classified with other
|
# append a "magic" extension so it can be classified with other
|
||||||
# languages that have shebang scripts.
|
# languages that have shebang scripts.
|
||||||
extension = FileBlob.new(name).extension
|
extensions = FileBlob.new(name).extensions
|
||||||
if extension.empty? && blob.mode && (blob.mode.to_i(8) & 05) == 05
|
if extensions.empty? && blob.mode && (blob.mode.to_i(8) & 05) == 05
|
||||||
name += ".script!"
|
name += ".script!"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user