Lower generated line limit to 500c

This commit is contained in:
Joshua Peek
2011-06-08 10:52:42 -05:00
parent fe525e8240
commit 1fc07145b8
3 changed files with 157 additions and 2 deletions

View File

@@ -173,8 +173,8 @@ module Linguist
elsif generated_coffeescript?
true
elsif extname == '.js'
# JS is minified if any lines are longer than 1000c
lines.any? { |l| l.length > 1000 }
# JS is minified if any lines are longer than 500c
lines.any? { |l| l.length > 500 }
else
false
end