aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2012-08-03 16:34:53 -0500
committerJoshua Peek <josh@joshpeek.com>2012-08-03 16:34:53 -0500
commit047d23862ef7cb6783aa0dd2c656383a4587c3de (patch)
treec4b00d46871688b1ccce0852d3a973806a6bba5c
parent804e23e99536187207863eb780e1e30a20c12c8d (diff)
Still index .txt
-rw-r--r--lib/linguist/blob_helper.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/linguist/blob_helper.rb b/lib/linguist/blob_helper.rb
index e56d095..2c80346 100644
--- a/lib/linguist/blob_helper.rb
+++ b/lib/linguist/blob_helper.rb
@@ -238,6 +238,8 @@ module Linguist
def indexable?
if binary?
false
+ elsif extname == '.txt'
+ true
elsif language.nil?
false
elsif !language.searchable?