mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Adding Go-specific vendor paths
This commit is contained in:
@@ -310,9 +310,7 @@ module Linguist
|
||||
#
|
||||
# Returns true or false.
|
||||
def go_vendor?
|
||||
return false unless extname == '.go'
|
||||
|
||||
!!name.match(/\Avendor\//)
|
||||
!!name.match(/vendor\/((?!-)[-0-9A-Za-z]+(?<!-)\.)+(com|edu|gov|in|me|net|org|fm|io)/)
|
||||
end
|
||||
|
||||
# Internal: Is the blob a generated npm shrinkwrap file.
|
||||
|
||||
Reference in New Issue
Block a user