Improve .ts heuristic rule

Use the closing TS tag instead of the opening tag as it cannot contain parameters
This commit is contained in:
Paul Chaignon
2016-07-01 19:17:14 +02:00
parent 5066f66dcd
commit 16bd70d84f
2 changed files with 32 additions and 1 deletions

View File

@@ -414,7 +414,7 @@ module Linguist
end
disambiguate ".ts" do |data|
if data.include?("<TS ")
if data.include?("</TS>")
Language["XML"]
else
Language["TypeScript"]