mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-12-08 20:38:47 +00:00
let us
This commit is contained in:
@@ -136,7 +136,7 @@ class TestGrammars < Minitest::Test
|
|||||||
return license if license
|
return license if license
|
||||||
end
|
end
|
||||||
|
|
||||||
# Neither Licensee nor our own regex was able to detect the license, lets check the readme
|
# Neither Licensee nor our own regex was able to detect the license, let's check the readme
|
||||||
files = Dir[File.join(ROOT, submodule, "*")]
|
files = Dir[File.join(ROOT, submodule, "*")]
|
||||||
if readme = files.find { |path| File.basename(path) =~ /\Areadme\b/i }
|
if readme = files.find { |path| File.basename(path) =~ /\Areadme\b/i }
|
||||||
classify_license(readme)
|
classify_license(readme)
|
||||||
|
|||||||
Reference in New Issue
Block a user