mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-12-08 20:38:47 +00:00
Regression fix: ensure .coffee is primary ext.
(The primary extension by default is the first extension, but the extensions need to be in alphabetical order, and _coffee comes before coffee.)
This commit is contained in:
@@ -337,6 +337,8 @@ class TestLanguage < Test::Unit::TestCase
|
||||
assert_equal '.pl', Language['Perl'].primary_extension
|
||||
assert_equal '.py', Language['Python'].primary_extension
|
||||
assert_equal '.rb', Language['Ruby'].primary_extension
|
||||
assert_equal '.js', Language['JavaScript'].primary_extension
|
||||
assert_equal '.coffee', Language['CoffeeScript'].primary_extension
|
||||
|
||||
# This is a nasty requirement, but theres some code in GitHub that
|
||||
# expects this. Really want to drop this.
|
||||
|
||||
Reference in New Issue
Block a user