You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Jim Idle (JIRA)" <ji...@apache.org> on 2015/07/28 10:04:04 UTC

[jira] [Created] (TIKA-1698) Matlab Detector Blocks Javascript

Jim Idle created TIKA-1698:
------------------------------

             Summary: Matlab Detector Blocks Javascript
                 Key: TIKA-1698
                 URL: https://issues.apache.org/jira/browse/TIKA-1698
             Project: Tika
          Issue Type: Bug
          Components: detector
    Affects Versions: 1.9
            Reporter: Jim Idle


When a javascript file is sent for detection, and it starts with anything like this

{code:javascript}
function BDN(cap) {
    var uas = window.navigator.userAgent,
        OperaB = /Opera[ \/]+\w+\.\w+/i,
        OperaV = /Version[ \/]+\w+\.\w+/i,
{code}

The Matlab detector now takes precedence and says this is text/x-matlab, despite the fact the the content-type is set to javascript. This is not the case with version 1.8, which correctly identified javascript.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)