mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Improve .ts heuristic rule
Use the closing TS tag instead of the opening tag as it cannot contain parameters
This commit is contained in:
@@ -414,7 +414,7 @@ module Linguist
|
||||
end
|
||||
|
||||
disambiguate ".ts" do |data|
|
||||
if data.include?("<TS ")
|
||||
if data.include?("</TS>")
|
||||
Language["XML"]
|
||||
else
|
||||
Language["TypeScript"]
|
||||
|
||||
Reference in New Issue
Block a user