lib/linguist/heuristics.rb in github-linguist-5.3.2 vs lib/linguist/heuristics.rb in github-linguist-5.3.3
- old
+ new
@@ -475,10 +475,10 @@
Language["TeX"]
end
end
disambiguate ".ts" do |data|
- if data.include?("<TS")
+ if /<TS\b/.match(data)
Language["XML"]
else
Language["TypeScript"]
end
end