[Groonga-commit] ranguba/chupa-text-decomposer-pdf at 26b8010 [master] Never process text/plain data

Back to archive index

Kouhei Sutou null+****@clear*****
Tue May 2 10:43:14 JST 2017


Kouhei Sutou	2017-05-02 10:43:14 +0900 (Tue, 02 May 2017)

  New Revision: 26b8010bffa6a5286f5b54f4a044ed5485bd1adf
  https://github.com/ranguba/chupa-text-decomposer-pdf/commit/26b8010bffa6a5286f5b54f4a044ed5485bd1adf

  Message:
    Never process text/plain data

  Modified files:
    lib/chupa-text/decomposers/pdf.rb

  Modified: lib/chupa-text/decomposers/pdf.rb (+1 -0)
===================================================================
--- lib/chupa-text/decomposers/pdf.rb    2014-02-18 00:08:06 +0900 (47f7d72)
+++ lib/chupa-text/decomposers/pdf.rb    2017-05-02 10:43:14 +0900 (f394483)
@@ -24,6 +24,7 @@ module ChupaText
       registry.register("pdf", self)
 
       def target?(data)
+        return false if data.text_plain?
         data.extension == "pdf" or
           data.mime_type == "application/pdf"
       end
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index