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)

Reply via email to