mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Allow for split(",") returning nil (#3424)
This commit is contained in:
@@ -460,4 +460,8 @@ class TestLanguage < Minitest::Test
|
||||
assert !language.color, "Unused colour assigned to #{language.name}"
|
||||
end
|
||||
end
|
||||
|
||||
def test_non_crash_on_comma
|
||||
assert_nil Language[',']
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user