-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtika-mimetypes.diff
52 lines (50 loc) · 1.89 KB
/
tika-mimetypes.diff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
diff --git a/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml b/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
index d0f7df9..0990352 100644
--- a/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
+++ b/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
@@ -194,6 +194,7 @@
<tika:link>http://www.digitalpreservation.gov/formats/fdd/fdd000317.shtml</tika:link>
<magic priority="50">
<match value="SIMPLE = T" type="string" offset="0"/>
+ <match value="SIMPLE = T" type="string" offset="0"/>
</magic>
<glob pattern="*.fits"/>
<glob pattern="*.fit"/>
@@ -277,6 +278,9 @@
<sub-class-of type="text/plain"/>
<_comment>JavaScript Source Code</_comment>
<glob pattern="*.js"/>
+ <magic priority="20">
+ <match value="document.write" type="string" offset="0"/>
+ </magic>
</mime-type>
<mime-type type="application/json">
@@ -3545,6 +3549,9 @@
<mime-type type="application/x-netcdf">
<glob pattern="*.nc"/>
<glob pattern="*.cdf"/>
+ <magic priority="30">
+ <match value="CDF\x01" type="string" offset="0"/>
+ </magic>
</mime-type>
<mime-type type="application/x-pkcs12">
<glob pattern="*.p12"/>
@@ -5341,6 +5348,7 @@
<match value="<H1" type="string" offset="0"/>
<match value="<!doctype HTML" type="string" offset="0"/>
<match value="<!DOCTYPE html" type="string" offset="0"/>
+ <match value="<script" type="string" offset="0"/>
</magic>
<glob pattern="*.html"/>
<glob pattern="*.htm"/>
@@ -6459,4 +6467,11 @@
<sub-class-of type="text/plain"/>
</mime-type>
+ <mime-type type="application/x-activemime">
+ <glob pattern="*.mso"/>
+ <magic priority="30">
+ <match value="ActiveMime" type="string" offset="0"/>
+ </magic>
+ </mime-type>
+
</mime-info>