From 6763b73d9ca5d88be2e67e6dcccd45f64eb65b8f Mon Sep 17 00:00:00 2001 From: Paul Chaignon Date: Sat, 27 Aug 2016 21:01:58 +0200 Subject: [PATCH] Fix .ts heuristic rule (#3171) Use the opening TS tag instead of the closing tag since the closing tag might be at the end of the file, after the max number of lines we read with a LazyBlob --- lib/linguist/heuristics.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/linguist/heuristics.rb b/lib/linguist/heuristics.rb index 28d14cb4..48b7e54f 100644 --- a/lib/linguist/heuristics.rb +++ b/lib/linguist/heuristics.rb @@ -430,7 +430,7 @@ module Linguist end disambiguate ".ts" do |data| - if data.include?("") + if data.include?("