mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Chop trailing slashes before looking up language
This commit is contained in:
@@ -77,7 +77,7 @@ class GrammarList
|
||||
short_url = "eregon/oz-tmbundle"
|
||||
long_url = "https://github.com/eregon/oz-tmbundle"
|
||||
else
|
||||
submodule = @submodules[@sources[scope]]
|
||||
submodule = @submodules[@sources[scope].chomp("/")]
|
||||
next unless submodule
|
||||
short_url = submodule[:short]
|
||||
long_url = submodule[:url]
|
||||
|
||||
Reference in New Issue
Block a user