This commit is contained in:
liluo
2013-11-17 20:08:42 +08:00
parent 9fd802a208
commit 01616ef54e

View File

@@ -191,8 +191,8 @@ module Linguist
return false unless extname == '.h'
return false unless lines.count > 2
return lines[0].include?("/* DO NOT EDIT THIS FILE - it is machine generated */")
return lines[1].include?("#include <jni.h>")
return lines[0].include?("/* DO NOT EDIT THIS FILE - it is machine generated */") &&
lines[1].include?("#include <jni.h>")
end
# node_modules/ can contain large amounts of files, in general not meant