marcel 1.1.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/marcel/magic.rb +15 -11
- data/lib/marcel/mime_type/definitions.rb +25 -2
- data/lib/marcel/tables.rb +39 -43
- data/lib/marcel/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d280147d3a167faa2c9f097907aee8a45eec84354734c8a180c75d390b0457e0
|
|
4
|
+
data.tar.gz: e5e77abd3ca7d4f1b6cf8fe7b330301206a87a518f6b5f9ac945ee857b474565
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9df73524e17a9a2db4d9f0bdb0ee499c310f44cd6871295944f3eecc1581bad3daac143c54a50f65daac07d43fa71139df8052b8c1f4f9bb73f413a57e726f0f
|
|
7
|
+
data.tar.gz: 5092dc78605de8a9e15d4c6348e16319b55ce000642a196c3d5cda10f3a2d175f043208ac80b9b6c92a83f7288a4fcc4c4690cf9253ed6c3e62e0deb306442a6
|
data/lib/marcel/magic.rb
CHANGED
|
@@ -115,16 +115,9 @@ module Marcel
|
|
|
115
115
|
end
|
|
116
116
|
|
|
117
117
|
def self.magic_match(io, method)
|
|
118
|
-
return magic_match(StringIO.new(
|
|
119
|
-
|
|
120
|
-
# Make StringIO readonly before encoding changes to prevent Ruby 3.4 frozen string warnings.
|
|
121
|
-
# Should be fixed in Ruby 3.5+: https://redmine.ruby-lang.org/issues/21280
|
|
122
|
-
io.close_write if io.respond_to?(:closed_write?) && !io.closed_write?
|
|
123
|
-
|
|
124
|
-
io.binmode if io.respond_to?(:binmode)
|
|
125
|
-
io.set_encoding(Encoding::BINARY) if io.respond_to?(:set_encoding)
|
|
126
|
-
buffer = (+"").encode(Encoding::BINARY)
|
|
118
|
+
return magic_match(StringIO.new(io.to_s), method) unless io.respond_to?(:read)
|
|
127
119
|
|
|
120
|
+
buffer = "".b
|
|
128
121
|
MAGIC.send(method) { |type, matches| magic_match_io(io, matches, buffer) }
|
|
129
122
|
end
|
|
130
123
|
|
|
@@ -132,7 +125,9 @@ module Marcel
|
|
|
132
125
|
matches.any? do |offset, value, children|
|
|
133
126
|
match =
|
|
134
127
|
if value
|
|
135
|
-
if
|
|
128
|
+
if value.is_a?(Regexp)
|
|
129
|
+
match_regex(io, offset, value, buffer)
|
|
130
|
+
elsif Range === offset
|
|
136
131
|
io.read(offset.begin, buffer)
|
|
137
132
|
x = io.read(offset.end - offset.begin + value.bytesize, buffer)
|
|
138
133
|
x && x.include?(value)
|
|
@@ -147,6 +142,15 @@ module Marcel
|
|
|
147
142
|
end
|
|
148
143
|
end
|
|
149
144
|
|
|
150
|
-
|
|
145
|
+
def self.match_regex(io, offset, regexp, buffer)
|
|
146
|
+
start = offset.is_a?(Range) ? offset.begin : offset
|
|
147
|
+
io.read(start, buffer) if start > 0
|
|
148
|
+
data = io.read(256, buffer)
|
|
149
|
+
return false unless data
|
|
150
|
+
|
|
151
|
+
data.match?(regexp)
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
private_class_method :magic_match, :magic_match_io, :match_regex
|
|
151
155
|
end
|
|
152
156
|
end
|
|
@@ -1,7 +1,28 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
Marcel::MimeType.extend "text/plain", extensions: %w( txt asc )
|
|
4
|
-
|
|
4
|
+
|
|
5
|
+
Marcel::Magic.remove("text/html")
|
|
6
|
+
Marcel::MimeType.extend "text/html",
|
|
7
|
+
extensions: %w( html htm ),
|
|
8
|
+
magic: [
|
|
9
|
+
[0, "<!DOCTYPE html"],
|
|
10
|
+
[0, "<!DOCTYPE HTML"],
|
|
11
|
+
[0, "<!doctype html"],
|
|
12
|
+
[0, "<!doctype HTML"],
|
|
13
|
+
[0, "<html"],
|
|
14
|
+
[0, "<HTML"],
|
|
15
|
+
[0, " <!DOCTYPE html"],
|
|
16
|
+
[0, "\n<!DOCTYPE html"],
|
|
17
|
+
[0, "\r<!DOCTYPE html"],
|
|
18
|
+
[0, "\r\n<!DOCTYPE html"],
|
|
19
|
+
[0, "\t<!DOCTYPE html"],
|
|
20
|
+
[0, " <html"],
|
|
21
|
+
[0, "\n<html"],
|
|
22
|
+
[0, "\r<html"],
|
|
23
|
+
[0, "\r\n<html"],
|
|
24
|
+
[0, "\t<html"]
|
|
25
|
+
]
|
|
5
26
|
|
|
6
27
|
Marcel::MimeType.extend "application/illustrator", parents: "application/pdf"
|
|
7
28
|
Marcel::MimeType.extend "image/vnd.adobe.photoshop", magic: [[0, "8BPS"]], extensions: %w( psd psb )
|
|
@@ -34,9 +55,11 @@ Marcel::MimeType.extend "application/vnd.apple.numbers", extensions: %w( numbers
|
|
|
34
55
|
Marcel::MimeType.extend "application/vnd.apple.keynote", extensions: %w( key ), parents: "application/zip"
|
|
35
56
|
|
|
36
57
|
Marcel::MimeType.extend "audio/aac", extensions: %w( aac ), parents: "audio/x-aac"
|
|
58
|
+
Marcel::MimeType.extend("audio/ogg", extensions: %w( opus ), magic: [[0, 'OggS', [[28, 'OpusHead']]]])
|
|
37
59
|
Marcel::MimeType.extend("audio/ogg", extensions: %w( ogg oga ), magic: [[0, 'OggS', [[29, 'vorbis']]]])
|
|
38
60
|
|
|
39
61
|
Marcel::MimeType.extend "image/vnd.dwg", magic: [[0, "AC10"]]
|
|
62
|
+
Marcel::MimeType.extend "application/pkcs8", magic: [[0, '-----BEGIN PRIVATE KEY-----']], extensions: %w( p8 )
|
|
40
63
|
|
|
41
64
|
Marcel::MimeType.extend "application/x-x509-ca-cert", magic: [[0, '-----BEGIN CERTIFICATE-----']], extensions: %w( pem ), parents: "application/x-x509-cert;format=pem"
|
|
42
65
|
|
|
@@ -44,7 +67,7 @@ Marcel::MimeType.extend "image/avif", magic: [[4, "ftypavif"]], extensions: %w(
|
|
|
44
67
|
Marcel::MimeType.extend "image/heif", magic: [[4, "ftypmif1"]], extensions: %w( heif )
|
|
45
68
|
Marcel::MimeType.extend "image/heic", magic: [[4, "ftypheic"]], extensions: %w( heic )
|
|
46
69
|
|
|
47
|
-
Marcel::MimeType.extend "image/x-raw-sony", extensions: %w( arw ), parents: "image/tiff"
|
|
70
|
+
Marcel::MimeType.extend "image/x-raw-sony", magic: [[0, "II*\000", [[0..4096, 'SONY']]], [0, "MM\000*", [[0..4096, 'SONY']]]], extensions: %w( arw ), parents: "image/tiff"
|
|
48
71
|
Marcel::MimeType.extend "image/x-raw-canon", extensions: %w( cr2 crw ), parents: "image/tiff"
|
|
49
72
|
|
|
50
73
|
Marcel::MimeType.extend "video/mp4", magic: [[4, "ftypisom"], [4, "ftypM4V "]], extensions: %w( mp4 m4v )
|
data/lib/marcel/tables.rb
CHANGED
|
@@ -401,6 +401,7 @@ module Marcel
|
|
|
401
401
|
'gpg' => 'application/pgp-encrypted',
|
|
402
402
|
'gph' => 'application/vnd.flographit',
|
|
403
403
|
'gpkg' => 'application/x-geopackage',
|
|
404
|
+
'gpx' => 'application/gpx+xml',
|
|
404
405
|
'gqf' => 'application/vnd.grafeq',
|
|
405
406
|
'gqs' => 'application/vnd.grafeq',
|
|
406
407
|
'gram' => 'application/srgs',
|
|
@@ -598,7 +599,7 @@ module Marcel
|
|
|
598
599
|
'maker' => 'application/vnd.framemaker',
|
|
599
600
|
'man' => 'text/troff',
|
|
600
601
|
'manifest' => 'text/plain',
|
|
601
|
-
'markdown' => 'text/
|
|
602
|
+
'markdown' => 'text/markdown',
|
|
602
603
|
'mat' => 'application/x-matlab-data',
|
|
603
604
|
'mathml' => 'application/mathml+xml',
|
|
604
605
|
'mb' => 'application/mathematica',
|
|
@@ -607,11 +608,11 @@ module Marcel
|
|
|
607
608
|
'mc1' => 'application/vnd.medcalcdata',
|
|
608
609
|
'mcd' => 'application/vnd.mcd',
|
|
609
610
|
'mcurl' => 'text/vnd.curl.mcurl',
|
|
610
|
-
'md' => 'text/
|
|
611
|
+
'md' => 'text/markdown',
|
|
611
612
|
'mdb' => 'application/x-msaccess',
|
|
612
613
|
'mdi' => 'image/vnd.ms-modi',
|
|
613
614
|
'mdo' => 'text/plain',
|
|
614
|
-
'mdtext' => 'text/
|
|
615
|
+
'mdtext' => 'text/markdown',
|
|
615
616
|
'me' => 'text/troff',
|
|
616
617
|
'mef' => 'image/x-raw-mamiya',
|
|
617
618
|
'memgraph' => 'application/x-memgraph',
|
|
@@ -634,7 +635,7 @@ module Marcel
|
|
|
634
635
|
'mjp2' => 'video/mj2',
|
|
635
636
|
'mjs' => 'text/javascript',
|
|
636
637
|
'mka' => 'audio/x-matroska',
|
|
637
|
-
'mkd' => 'text/
|
|
638
|
+
'mkd' => 'text/markdown',
|
|
638
639
|
'mkv' => 'video/x-matroska',
|
|
639
640
|
'ml' => 'text/x-ml',
|
|
640
641
|
'mli' => 'text/x-ocaml',
|
|
@@ -1330,6 +1331,7 @@ module Marcel
|
|
|
1330
1331
|
'application/epub+zip' => %w(epub), # Electronic Publication
|
|
1331
1332
|
'application/fits' => %w(fits fit fts), # Flexible Image Transport System
|
|
1332
1333
|
'application/font-tdpfr' => %w(pfr),
|
|
1334
|
+
'application/gpx+xml' => %w(gpx), # GPS Exchange Format (GPX)
|
|
1333
1335
|
'application/gzip' => %w(gz tgz), # Gzip Compressed Archive
|
|
1334
1336
|
'application/hwp+zip' => %w(hwpx), # Hangul Word Processor File, zip based
|
|
1335
1337
|
'application/hyperstudio' => %w(stk),
|
|
@@ -1532,7 +1534,7 @@ module Marcel
|
|
|
1532
1534
|
'application/vnd.is-xpr' => %w(xpr),
|
|
1533
1535
|
'application/vnd.isac.fcs' => %w(fcs), # Flow Cytometry Standard File
|
|
1534
1536
|
'application/vnd.jam' => %w(jam),
|
|
1535
|
-
'application/vnd.java.hprof
|
|
1537
|
+
'application/vnd.java.hprof' => %w(hprof), # Java hprof text file
|
|
1536
1538
|
'application/vnd.java.hprof.text' => %w(hprof.txt), # Java hprof text file
|
|
1537
1539
|
'application/vnd.jcp.javame.midlet-rms' => %w(rms),
|
|
1538
1540
|
'application/vnd.jisp' => %w(jisp),
|
|
@@ -2104,6 +2106,7 @@ module Marcel
|
|
|
2104
2106
|
'text/html' => %w(html htm), # HyperText Markup Language
|
|
2105
2107
|
'text/iso19139+xml' => %w(iso19139),
|
|
2106
2108
|
'text/javascript' => %w(js mjs), # JavaScript Source Code
|
|
2109
|
+
'text/markdown' => %w(md mdtext mkd markdown), # Markdown document
|
|
2107
2110
|
'text/plain' => %w(txt text def list in aart ac am apt bsh classpath cnd cwiki data dcl dsp dsw egrm ent ft fn fv grm g handlers htc ihtml jmx junit jx manifest m4 mf mf meta mdo n3 pen pod pom project rng rnx roles schemas tld types vm vsl wsdd xargs xcat xegrm xgrm xlex xlog xmap xroles xsamples xsp xtest xweb xwelcome),
|
|
2108
2111
|
'text/prs.lines.tag' => %w(dsc),
|
|
2109
2112
|
'text/richtext' => %w(rtx),
|
|
@@ -2197,7 +2200,6 @@ module Marcel
|
|
|
2197
2200
|
'text/x-vcard' => %w(vcf),
|
|
2198
2201
|
'text/x-verilog' => %w(v), # Verilog source code
|
|
2199
2202
|
'text/x-vhdl' => %w(vhd vhdl), # VHDL source code
|
|
2200
|
-
'text/x-web-markdown' => %w(md mdtext mkd markdown), # Markdown source code
|
|
2201
2203
|
'text/x-yacc' => %w(y), # Yacc/Bison source code
|
|
2202
2204
|
'text/x-yaml' => %w(yaml yml), # YAML source code
|
|
2203
2205
|
'video/3gpp' => %w(3gp),
|
|
@@ -2243,6 +2245,7 @@ module Marcel
|
|
|
2243
2245
|
'application/dita+xml;format=map' => %w(application/dita+xml),
|
|
2244
2246
|
'application/dita+xml;format=topic' => %w(application/dita+xml),
|
|
2245
2247
|
'application/dita+xml;format=val' => %w(application/dita+xml),
|
|
2248
|
+
'application/gpx+xml' => %w(application/xml),
|
|
2246
2249
|
'application/hwp+zip' => %w(application/zip),
|
|
2247
2250
|
'application/illustrator' => %w(application/pdf),
|
|
2248
2251
|
'application/java-archive' => %w(application/zip),
|
|
@@ -2419,6 +2422,7 @@ module Marcel
|
|
|
2419
2422
|
'text/csv' => %w(text/plain),
|
|
2420
2423
|
'text/iso19139+xml' => %w(application/xml),
|
|
2421
2424
|
'text/javascript' => %w(text/plain),
|
|
2425
|
+
'text/markdown' => %w(text/plain),
|
|
2422
2426
|
'text/vnd.graphviz' => %w(text/plain),
|
|
2423
2427
|
'text/vtt' => %w(text/plain),
|
|
2424
2428
|
'text/x-actionscript' => %w(text/plain),
|
|
@@ -2492,7 +2496,6 @@ module Marcel
|
|
|
2492
2496
|
'text/x-vcard' => %w(text/plain),
|
|
2493
2497
|
'text/x-verilog' => %w(text/plain),
|
|
2494
2498
|
'text/x-vhdl' => %w(text/plain),
|
|
2495
|
-
'text/x-web-markdown' => %w(text/plain),
|
|
2496
2499
|
'text/x-yacc' => %w(text/plain),
|
|
2497
2500
|
'text/x-yaml' => %w(text/plain),
|
|
2498
2501
|
'video/iso.segment' => %w(video/quicktime),
|
|
@@ -2515,13 +2518,13 @@ module Marcel
|
|
|
2515
2518
|
['image/png', [[0, b["\211PNG\r\n\032\n"]]]],
|
|
2516
2519
|
['image/gif', [[0, b['GIF87a']], [0, b['GIF89a']]]],
|
|
2517
2520
|
['image/tiff', [[0, b["MM\000*"]], [0, b["II*\000"]], [0, b["MM\000+"]]]],
|
|
2518
|
-
['image/bmp', [[0, b['BM'], [[26, b["\001\000"], [[28, b["\000\000"]], [28, b["\001\000"]], [28, b["\004\000"]], [28, b["\b\000"]], [28, b["\020\000"]], [28, b["\030\000"]], [28, b[" \000"]]]]]]]],
|
|
2521
|
+
['image/bmp', [[0, b['BM'], [[26, b["\001\000"], [[0, nil, [[0, nil, [[28, b["\000\000"]], [28, b["\001\000"]], [28, b["\004\000"]], [28, b["\b\000"]], [28, b["\020\000"]], [28, b["\030\000"]], [28, b[" \000"]]]], [30, b["\000\000\000\000"]]]]]]]]]],
|
|
2519
2522
|
['image/vnd.adobe.photoshop', [[0, b["8BPS\000\001"]], [0, b["8BPS\000\002"]]]],
|
|
2520
2523
|
['image/webp', [[0, b['RIFF'], [[8, b['WEBP']]]]]],
|
|
2521
|
-
['text/html', [[0,
|
|
2522
|
-
['image/svg+xml', [[0
|
|
2524
|
+
['text/html', [[0, /(?i)<(html|head|body|title|div)[ >]/], [0, /(?i)<h[123][ >]/]]],
|
|
2525
|
+
['image/svg+xml', [[0, b['<svg']]]],
|
|
2523
2526
|
['video/x-msvideo', [[0, b['RIFF'], [[8, b['AVI ']]]], [8, b['AVI ']]]],
|
|
2524
|
-
['video/x-ms-wmv', [[0..8192, b[
|
|
2527
|
+
['video/x-ms-wmv', [[0..8192, b["W\000i\000n\000d\000o\000w\000s\000 \000M\000e\000d\000i\000a\000 \000V\000i\000d\000e\000o\000"]], [0..8192, b["V\000C\000-\0001\000 \000A\000d\000v\000a\000n\000c\000e\000d\000 \000P\000r\000o\000f\000i\000l\000e\000"]], [0..8192, b["w\000m\000v\0002\000"]]]],
|
|
2525
2528
|
['video/mp4', [[4, b['ftypmp41']], [4, b['ftypmp42']]]],
|
|
2526
2529
|
['audio/mp4', [[4, b['ftypM4A ']], [4, b['ftypM4B ']], [4, b['ftypF4A ']], [4, b['ftypF4B ']]]],
|
|
2527
2530
|
['video/quicktime', [[4, b["moov\000"]], [4, b["mdat\000"]], [4, b["free\000"]], [4, b["skip\000"]], [4, b["pnot\000"]], [4, b['ftyp']], [0, b["\000\000\000\bwide"]]]],
|
|
@@ -2529,27 +2532,27 @@ module Marcel
|
|
|
2529
2532
|
['video/webm', [[0, b["\032E\337\243"], [[4..4096, b["B\202"], [[4..4096, b['webm'], [[4..4096, b['V_VP8']], [4..4096, b['V_VP9']], [4..4096, b['V_AV1']]]]]]]]]],
|
|
2530
2533
|
['video/x-matroska', [[0, b["\032E\337\243\223B\202\210matroska"]]]],
|
|
2531
2534
|
['video/x-flv', [[0, b['FLV']]]],
|
|
2532
|
-
['audio/mpeg', [[0, b["\377\362"]], [0, b["\377\363"]], [0, b["\377\364"]], [0, b["\377\365"]], [0, b["\377\366"]], [0, b["\377\367"]], [0, b["\377\372"]], [0, b["\377\373"]], [0, b["\377\374"]], [0, b["\377\375"]], [0, b["\377\343"]], [0, b[
|
|
2535
|
+
['audio/mpeg', [[0, b["\377\362"]], [0, b["\377\363"]], [0, b["\377\364"]], [0, b["\377\365"]], [0, b["\377\366"]], [0, b["\377\367"]], [0, b["\377\372"]], [0, b["\377\373"]], [0, b["\377\374"]], [0, b["\377\375"]], [0, b["\377\343"]], [0, b['ID3']]]],
|
|
2533
2536
|
['application/pdf', [[0, b['%PDF-']], [0, b["\357\273\277%PDF-"]]]],
|
|
2534
|
-
['application/msword', [[
|
|
2537
|
+
['application/msword', [[0..8, b["\320\317\021\340\241\261\032\341"], [[546, b['jbjb']], [546, b['bjbj']]]]]],
|
|
2535
2538
|
['application/vnd.openxmlformats-officedocument.wordprocessingml.document', [[0, b["PK\003\004"], [[30..65536, b['[Content_Types].xml'], [[0..4096, b['word/']]]], [30, b['_rels/.rels'], [[0..4096, b['word/']]]]]]]],
|
|
2536
2539
|
['application/vnd.ms-powerpoint', [[0..8, b["\320\317\021\340\241\261\032\341"], [[1152..4096, b["P\000o\000w\000e\000r\000P\000o\000i\000n\000t\000 D\000o\000c\000u\000m\000e\000n\000t"]]]]]],
|
|
2537
2540
|
['application/vnd.openxmlformats-officedocument.presentationml.presentation', [[0, b["PK\003\004"], [[30..65536, b['[Content_Types].xml'], [[0..4096, b['ppt/']]]], [30, b['_rels/.rels'], [[0..4096, b['ppt/']]]]]]]],
|
|
2538
2541
|
['application/vnd.ms-excel', [[2080, b['Microsoft Excel 5.0 Worksheet']], [2080, b['Foglio di lavoro Microsoft Exce']], [2114, b['Biff5']], [2121, b['Biff5']], [0..8, b["\320\317\021\340\241\261\032\341"], [[1152..4096, b["W\000o\000r\000k\000b\000o\000o\000k"]]]]]],
|
|
2539
2542
|
['application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', [[0, b["PK\003\004"], [[30..65536, b['[Content_Types].xml'], [[0..4096, b['xl/']]]], [30, b['_rels/.rels'], [[0..4096, b['xl/']]]]]]]],
|
|
2540
|
-
['image/x-tga', [[1, b["\001\001\000\000"]
|
|
2543
|
+
['image/x-tga', [[1, b["\001\001\000\000"]], [1, b["\000\002\000\000"]], [1, b["\000\003\000\000"]]]],
|
|
2541
2544
|
['application/x-endnote-refer', [[0..50, b['%A '], [[0..1000, b["\n%D "], [[0..1000, b["\n%T "]]]]]]]],
|
|
2542
|
-
['application/x-ms-owner', [[0, b["(?s)^([\\\\005-\\\\017])[\\\\000\\\\040-\\\\176]{10}.{43}\\\\1\\000"]]]],
|
|
2543
2545
|
['application/x-tmx', [[0..256, b['<tmx']]]],
|
|
2546
|
+
['image/svg+xml', [[0, b['<?xml'], [[25..512, b['<svg']]]]]],
|
|
2544
2547
|
['application/mbox', [[0, b['From '], [[32..256, b["\nFrom: "]], [32..256, b["\nDate: "]], [32..256, b["\nSubject: "]], [32..256, b["\nDelivered-To: "]], [32..256, b["\nReceived: by "]], [32..256, b["\nReceived: via "]], [32..256, b["\nReceived: from "]], [32..256, b["\nMime-Version: "]], [32..256, b["\nX-"], [[32..8192, b["\nFrom: "]], [32..8192, b["\nDate: "]], [32..8192, b["\nSubject: "]], [32..8192, b["\nDelivered-To: "]], [32..8192, b["\nReceived: by "]], [32..8192, b["\nReceived: via "]], [32..8192, b["\nReceived: from "]], [32..8192, b["\nMime-Version: "]]]]]]]],
|
|
2545
2548
|
['application/x-bplist', [[0, b["bplist\000\000"]], [0, b["bplist\000\001"]], [0, b["bplist@\000"]], [0, b['bplist00']], [0, b['bplist01']], [0, b['bplist10']], [0, b['bplist15']], [0, b['bplist16']]]],
|
|
2546
2549
|
['application/x-dvd-ifo', [[0, b['DVDVIDEO-VTS']], [0, b['DVDVIDEO-VMG']]]],
|
|
2547
2550
|
['application/x-ebu-stl', [[3, b['STL'], [[8, b['.01']]]]]],
|
|
2548
|
-
['
|
|
2551
|
+
['image/svg+xml', [[0, b['<!DOCTYPE svg'], [[25..1024, b['<svg']]]]]],
|
|
2549
2552
|
['message/x-emlx', [[2..9, b["\nRelay-Version:"]], [2..9, b["\n#! rnews"]], [2..9, b["\nN#! rnews"]], [2..9, b["\nForward to"]], [2..9, b["\nPipe to"]], [2..9, b["\nReturn-Path:"]], [2..9, b["\nFrom:"]], [2..9, b["\nReceived:"]], [2..9, b["\nMessage-ID:"]], [2..9, b["\nDate:"]]]],
|
|
2553
|
+
['image/svg+xml', [[0, b['<!--'], [[4..1024, b['<svg']]]]]],
|
|
2550
2554
|
['application/cbor', [[0, b["\331\331\367"]]]],
|
|
2551
2555
|
['application/coreldraw', [[0, b['RIFF'], [[8, b['CDR']], [8, b['cdr']], [8, b['DES']], [8, b['des']]]]]],
|
|
2552
|
-
['application/illustrator+ps', [[0..8192, b["[\\r\\n]%AI5_FileFormat [1-4][\\r\\n]"]]]],
|
|
2553
2556
|
['application/vnd.etsi.asic-e+zip', [[0, b["PK\003\004"], [[30, b['mimetypeapplication/vnd.etsi.asic-e+zip']]]]]],
|
|
2554
2557
|
['application/vnd.etsi.asic-s+zip', [[0, b["PK\003\004"], [[30, b['mimetypeapplication/vnd.etsi.asic-s+zip']]]]]],
|
|
2555
2558
|
['application/vnd.ms-excel.sheet.2', [[0, b["\t\000\004\000"], [[4, b["\000\000\020\000"]], [4, b["\000\000 \000"]], [4, b["\000\000@\000"]]]]]],
|
|
@@ -2580,8 +2583,9 @@ module Marcel
|
|
|
2580
2583
|
['application/x-fossil-repository', [[0, b["SQLite format 3\000"], [[68, b["\017\005Q\021"]]]]]],
|
|
2581
2584
|
['application/x-geopackage', [[0, b["SQLite format 3\000"], [[68, b['GPKG']]]]]],
|
|
2582
2585
|
['application/x-geopackage; version=1.1Or1.0', [[0, b["SQLite format 3\000"], [[68, b['GP10']]]]]],
|
|
2583
|
-
['application/x-httpresponse', [[0, b['HTTP/'], [[0..1000, b["\nCache-Control:"]], [0..1000, b["\nContent-Type:"]], [0..1000, b["\nContent-Length:"]], [0..1000, b["\nContent-Disposition:"]], [0..1000, b["\nDate:"]], [0..1000, b["\nServer:"]]]]
|
|
2586
|
+
['application/x-httpresponse', [[0, b['HTTP/'], [[0..1000, b["\nCache-Control:"]], [0..1000, b["\nContent-Type:"]], [0..1000, b["\nContent-Length:"]], [0..1000, b["\nContent-Disposition:"]], [0..1000, b["\nDate:"]], [0..1000, b["\nServer:"]]]]]],
|
|
2584
2587
|
['application/x-internet-archive', [[0, b['filedesc://']]]],
|
|
2588
|
+
['application/x-iso9660-image', [[32769, b['CD001']], [34817, b['CD001']], [36865, b['CD001']]]],
|
|
2585
2589
|
['application/x-lz4', [[0, b["\004\"M\030"]], [0, b["\002!L\030"]]]],
|
|
2586
2590
|
['application/x-mach-o-universal', [[0, b["\312\376\272\276"], [[4, b["\000\000\000\001"]], [4, b["\000\000\000\002"]], [4, b["\000\000\000\003"]], [4, b["\000\000\000\004"]], [4, b["\000\000\000\005"]], [4, b["\000\000\000\006"]], [4, b["\000\000\000\a"]], [4, b["\000\000\000\b"]], [4, b["\000\000\000\t"]], [4, b["\000\000\000\n"]], [4, b["\000\000\000\v"]], [4, b["\000\000\000\f"]], [4, b["\000\000\000\r"]], [4, b["\000\000\000\016"]], [4, b["\000\000\000\017"]], [4, b["\000\000\000\020"]], [4, b["\000\000\000\021"]], [4, b["\000\000\000\022"]], [4, b["\000\000\000\023"]]]], [0, b["\276\272\376\312"], [[4, b["\001\000\000\000"]], [4, b["\002\000\000\000"]], [4, b["\003\000\000\000"]], [4, b["\004\000\000\000"]], [4, b["\005\000\000\000"]], [4, b["\006\000\000\000"]], [4, b["\a\000\000\000"]], [4, b["\b\000\000\000"]], [4, b["\t\000\000\000"]], [4, b["\n\000\000\000"]], [4, b["\v\000\000\000"]], [4, b["\f\000\000\000"]], [4, b["\r\000\000\000"]], [4, b["\016\000\000\000"]], [4, b["\017\000\000\000"]], [4, b["\020\000\000\000"]], [4, b["\021\000\000\000"]], [4, b["\022\000\000\000"]], [4, b["\023\000\000\000"]]]], [0, b["\312\376\272\277"], [[4, b["\000\000\000\001"]], [4, b["\000\000\000\002"]], [4, b["\000\000\000\003"]], [4, b["\000\000\000\004"]], [4, b["\000\000\000\005"]], [4, b["\000\000\000\006"]], [4, b["\000\000\000\a"]], [4, b["\000\000\000\b"]], [4, b["\000\000\000\t"]], [4, b["\000\000\000\n"]], [4, b["\000\000\000\v"]], [4, b["\000\000\000\f"]], [4, b["\000\000\000\r"]], [4, b["\000\000\000\016"]], [4, b["\000\000\000\017"]], [4, b["\000\000\000\020"]], [4, b["\000\000\000\021"]], [4, b["\000\000\000\022"]], [4, b["\000\000\000\023"]]]], [0, b["\277\272\376\312"], [[4, b["\001\000\000\000"]], [4, b["\002\000\000\000"]], [4, b["\003\000\000\000"]], [4, b["\004\000\000\000"]], [4, b["\005\000\000\000"]], [4, b["\006\000\000\000"]], [4, b["\a\000\000\000"]], [4, b["\b\000\000\000"]], [4, b["\t\000\000\000"]], [4, b["\n\000\000\000"]], [4, b["\v\000\000\000"]], [4, b["\f\000\000\000"]], [4, b["\r\000\000\000"]], [4, b["\016\000\000\000"]], [4, b["\017\000\000\000"]], [4, b["\020\000\000\000"]], [4, b["\021\000\000\000"]], [4, b["\022\000\000\000"]], [4, b["\023\000\000\000"]]]]]],
|
|
2587
2591
|
['application/x-mbtiles', [[0, b["SQLite format 3\000"], [[68, b['MPBX']]]]]],
|
|
@@ -2615,6 +2619,7 @@ module Marcel
|
|
|
2615
2619
|
['image/heic-sequence', [[4, b['ftyphevc']], [4, b['ftyphevx']]]],
|
|
2616
2620
|
['image/heif', [[4, b['ftypmif1']]]],
|
|
2617
2621
|
['image/heif-sequence', [[4, b['ftypmsf1']]]],
|
|
2622
|
+
['image/svg+xml', [[0, b[' <svg']], [0, b["\n<svg"]], [0, b["\r<svg"]], [0, b["\r\n<svg"]], [0, b["\t<svg"]]]],
|
|
2618
2623
|
['image/x-canon-cr2', [[0, b["MM\000*"], [[8, b['CR']]]], [0, b["II*\000"], [[8, b['CR']]]], [0, b["MM\000+"], [[8, b['CR']]]]]],
|
|
2619
2624
|
['image/x-canon-cr3', [[4, b['ftypcrx ']]]],
|
|
2620
2625
|
['message/news', [[0, b['Path:']], [0, b['Xref:']]]],
|
|
@@ -2652,11 +2657,11 @@ module Marcel
|
|
|
2652
2657
|
['application/dicom', [[128, b['DICM']]]],
|
|
2653
2658
|
['application/epub+zip', [[0, b["PK\003\004"], [[30, b['mimetypeapplication/epub+zip']]]]]],
|
|
2654
2659
|
['application/fits', [[0, b['SIMPLE = T']], [0, b['SIMPLE = T']]]],
|
|
2660
|
+
['application/gpx+xml', [[0..4096, b['<gpx']]]],
|
|
2655
2661
|
['application/java-vm', [[0, b["\312\376\272\276"]]]],
|
|
2656
2662
|
['application/mac-binhex40', [[11, b['must be converted with BinHex']]]],
|
|
2657
|
-
['application/marc', [[0, b['[0-9]{5,5}'], [[20, b['45'], [[5, b['[acdnp][acdefgijkmoprt][abcdims]']], [5, b['[acdnosx]z']], [5, b['[cdn][uvxy]']], [5, b['[acdn]w']], [5, b['[cdn]q']]]]]]]],
|
|
2658
2663
|
['application/mathematica', [[0, b['(**']], [0, b['(* ']]]],
|
|
2659
|
-
['application/msword', [[0..8, b["\320\317\021\340\241\261\032\341"], [[
|
|
2664
|
+
['application/msword', [[2080, b['Microsoft Word 6.0 Document']], [2080, b['Documento Microsoft Word 6']], [2112, b['MSWordDoc']], [0, b["1\276\000\000"]], [0, b['PO^Q`']], [0, b["\3767\000#"]], [0, b["\333\245-\000\000\000"]], [0, b["\224\246."]], [0..8, b["\320\317\021\340\241\261\032\341"], [[1152..4096, b["W\000o\000r\000d\000D\000o\000c\000u\000m\000e\000n\000t"]]]]]],
|
|
2660
2665
|
['application/msword2', [[0, b["\233\245"]], [0, b["\333\245"]]]],
|
|
2661
2666
|
['application/msword5', [[0, b["\3767"]]]],
|
|
2662
2667
|
['application/octet-stream', [[10, b['# This is a shell archive']], [0, b["\037\036"]], [0, b["\037\037"]], [0, b["\377\037"]], [0, b["\377\037"]], [0, b["\005\313"]]]],
|
|
@@ -2675,9 +2680,8 @@ module Marcel
|
|
|
2675
2680
|
['application/vnd.digilite.prolights', [[0, b["\177\fD+"]]]],
|
|
2676
2681
|
['application/vnd.fdf', [[0, b['%FDF-']]]],
|
|
2677
2682
|
['application/vnd.iccprofile', [[36, b['acsp']]]],
|
|
2678
|
-
['application/vnd.
|
|
2679
|
-
['application/vnd.java.hprof
|
|
2680
|
-
['application/vnd.java.hprof.text', [[0, b["JAVA PROFILE \\\\d\\\\.\\\\d\\\\.\\\\d,"]]]],
|
|
2683
|
+
['application/vnd.java.hprof', [[0, /JAVA PROFILE \d\.\d\.\d\u0000/]]],
|
|
2684
|
+
['application/vnd.java.hprof.text', [[0, /JAVA PROFILE \d\.\d\.\d,/]]],
|
|
2681
2685
|
['application/vnd.lotus-1-2-3;version=1', [[0, b["\000\000\002\000\004\004"]]]],
|
|
2682
2686
|
['application/vnd.lotus-1-2-3;version=2', [[0, b["\000\000\002\000\006\004\006\000\b\000"]]]],
|
|
2683
2687
|
['application/vnd.lotus-1-2-3;version=3', [[0, b["\000\000\032\000\000\020\004\000"]]]],
|
|
@@ -2750,11 +2754,11 @@ module Marcel
|
|
|
2750
2754
|
['application/x-endnote-style', [[0, b["\000\b"], [[4, b["\000\000"], [[8, b['RSFTSTYL']], [8, b['ENDNENFT']]]]]]]],
|
|
2751
2755
|
['application/x-erdas-hfa', [[0, b['EHFA_HEADER_TAG']]]],
|
|
2752
2756
|
['application/x-executable', [[0, b["\177ELF"], [[16, b["\002\000"]], [16, b["\000\002"]]]]]],
|
|
2753
|
-
['application/x-fat-diskimage', [[0, b["\\353"], [[2, b["\\220"]
|
|
2757
|
+
['application/x-fat-diskimage', [[0, b["\\353"], [[2, b["\\220"]]]]]],
|
|
2754
2758
|
['application/x-filemaker', [[14, b["\300HBAM7"], [[525, b["HBAM2101OCT99\301\002H\aPro 7.0\300\300"]]]]]],
|
|
2755
2759
|
['application/x-foxmail', [[0, b["\020\020\020\020\020\020\020\021\021\021\021\021\021S"]]]],
|
|
2756
2760
|
['application/x-gnumeric', [[39, b['=<gmr:Workbook']]]],
|
|
2757
|
-
['application/x-grib', [[0, b['GRIB']]]],
|
|
2761
|
+
['application/x-grib', [[0, b['GRIB'], [[7, b["\001"]]]], [0, b['GRIB'], [[7, b["\002"]]]]]],
|
|
2758
2762
|
['application/x-gtar', [[257, b["ustar \000"]]]],
|
|
2759
2763
|
['application/x-guitar-pro', [[1, b['FICHIER GUITARE PRO ']], [1, b['FICHIER GUITAR PRO ']]]],
|
|
2760
2764
|
['application/x-hdf', [[0, b["\016\003\023\001"]], [0, b["\211HDF\r\n\032"]]]],
|
|
@@ -2764,7 +2768,6 @@ module Marcel
|
|
|
2764
2768
|
['application/x-isatab', [[1, b['Source Name']]]],
|
|
2765
2769
|
['application/x-isatab-assay', [[1, b['Sample Name']]]],
|
|
2766
2770
|
['application/x-isatab-investigation', [[0, b['ONTOLOGY SOURCE REFERENCE']]]],
|
|
2767
|
-
['application/x-iso9660-image', [[32769, b['CD001']], [34817, b['CD001']], [36865, b['CD001']]]],
|
|
2768
2771
|
['application/x-java-keystore', [[0..4, b["\376\355\376\355"]]]],
|
|
2769
2772
|
['application/x-jeol-jdf', [[0, b['JEOL.NMR']], [0, b['RMN.LOEJ']]]],
|
|
2770
2773
|
['application/x-jigdo', [[0, b['JigsawDownload template']]]],
|
|
@@ -2809,10 +2812,9 @@ module Marcel
|
|
|
2809
2812
|
['application/x-tex-virtual-font', [[0, b["\367\312"], [[11, b["\363\000"], [[17, b["\000\020"]]]]]]]],
|
|
2810
2813
|
['application/x-texinfo', [[0, b["\\input texinfo"]]]],
|
|
2811
2814
|
['application/x-tika-ooxml', [[0, b["PK\003\004"], [[30, b['[Content_Types].xml']], [30, b['_rels/.rels']]]]]],
|
|
2812
|
-
['application/x-touhou', [[0, b['t1']
|
|
2815
|
+
['application/x-touhou', [[0, b['t1']]]],
|
|
2813
2816
|
['application/x-uc2-compressed', [[0, b["UC2\032"]]]],
|
|
2814
2817
|
['application/x-vhd', [[0, b['conectix']]]],
|
|
2815
|
-
['application/x-x509-cert;format=der', []],
|
|
2816
2818
|
['application/x-x509-cert;format=pem', [[0, b['-----BEGIN CERTIFICATE-----']]]],
|
|
2817
2819
|
['application/x-x509-dsa-parameters', [[0, b['-----BEGIN DSA PARAMETERS-----']]]],
|
|
2818
2820
|
['application/x-x509-ec-parameters', [[0, b['-----BEGIN EC PARAMETERS-----']]]],
|
|
@@ -2831,7 +2833,7 @@ module Marcel
|
|
|
2831
2833
|
['audio/x-flac', [[0, b['fLaC']]]],
|
|
2832
2834
|
['audio/x-mod', [[0, b['Extended Module:']], [21, b['BMOD2STM']], [1080, b['M.K.']], [1080, b['M!K!']], [1080, b['FLT4']], [1080, b['FLT8']], [1080, b['4CHN']], [1080, b['6CHN']], [1080, b['8CHN']], [1080, b['CD81']], [1080, b['OKTA']], [1080, b['16CN']], [1080, b['32CN']], [0, b['IMPM']]]],
|
|
2833
2835
|
['audio/x-mpegurl', [[0, b["#EXTM3U\r\n"]]]],
|
|
2834
|
-
['audio/x-ms-wma', [[0..8192, b[
|
|
2836
|
+
['audio/x-ms-wma', [[0..8192, b["W\000i\000n\000d\000o\000w\000s\000 \000M\000e\000d\000i\000a\000 \000A\000u\000d\000i\000o\000"]]]],
|
|
2835
2837
|
['audio/x-pn-realaudio', [[0, b[".ra\375"]]]],
|
|
2836
2838
|
['audio/x-psf', [[0, b['PSF'], [[3, b["\001"]], [3, b["\002"]], [3, b["\021"]], [3, b["\022"]], [3, b["\023"]], [3, b['!']], [3, b["\""]], [3, b['#']], [3, b['A']]]]]],
|
|
2837
2839
|
['audio/x-sap', [[0, b["SAP\r\n"]]]],
|
|
@@ -2853,11 +2855,9 @@ module Marcel
|
|
|
2853
2855
|
['image/jxl', [[0, b["\377\n"]], [0, b["\000\000\000\fJXL \r\n\207\n"]]]],
|
|
2854
2856
|
['image/nitf', [[0, b['NITF01.10']], [0, b['NITF02.000']], [0, b['NITF02.100']]]],
|
|
2855
2857
|
['image/svg+xml', [[0, b['<svg'], [[5..256, b['http://www.w3.org/2000/svg']]]]]],
|
|
2856
|
-
['image/vnd.dgn;version=7', []],
|
|
2857
2858
|
['image/vnd.djvu', [[0, b['AT&TFORM']]]],
|
|
2858
2859
|
['image/vnd.dwg', [[0, b['MC0.0']], [0, b['AC1.2']], [0, b['AC1.40']], [0, b['AC1.50']], [0, b['AC2.10']], [0, b['AC2.21']], [0, b['AC2.22']]]],
|
|
2859
2860
|
['image/vnd.dxb', [[0, b["AutoCAD DXB 1.0\r\n0x1A00"]]]],
|
|
2860
|
-
['image/vnd.dxf;format=ascii', [[0..32, b["(999\\r?\\n[^\\r\\n]{0,64}\\\\s+)?0\\r?\\nSECTION\\r?\\n"], [[12..60, b["2\\r?\\n(?:HEADER|ENTITIES)\\r?\\n"]]]]]],
|
|
2861
2861
|
['image/vnd.dxf;format=binary', [[0, b["AutoCAD Binary DXF\r\n0x1A00"]]]],
|
|
2862
2862
|
['image/vnd.microsoft.icon', [[0, b["BA(\000\000\000.\000\000\000\000\000\000\000"]], [0, b["\000\000\001\000"]]]],
|
|
2863
2863
|
['image/vnd.ms-modi', [[0, b["EP*\000"]]]],
|
|
@@ -2873,22 +2873,21 @@ module Marcel
|
|
|
2873
2873
|
['image/x-os2-graphics; charset=binary', [[0, b['BA'], [[14, b['BM']], [14, b['CI']], [14, b['IC']], [14, b['CP']], [14, b['PT']]]]]],
|
|
2874
2874
|
['image/x-pict', [[522, b["\000\021\002\377\f\000"]]]],
|
|
2875
2875
|
['image/x-portable-arbitrarymap', [[0, b['P7'], [[2, b["\n"]], [2, b["\r"]], [2, b[' ']]]]]],
|
|
2876
|
-
['image/x-portable-bitmap', [[0, b['P1'], [[2, b["\n"]], [2, b["\r"]], [2, b[' ']]]]
|
|
2877
|
-
['image/x-portable-graymap', [[0, b['P2'], [[2, b["\n"]], [2, b["\r"]], [2, b[' ']]]]
|
|
2878
|
-
['image/x-portable-pixmap', [[0, b['P3'], [[2, b["\n"]], [2, b["\r"]], [2, b[' ']]]]
|
|
2876
|
+
['image/x-portable-bitmap', [[0, b['P1'], [[2, b["\n"]], [2, b["\r"]], [2, b[' ']]]]]],
|
|
2877
|
+
['image/x-portable-graymap', [[0, b['P2'], [[2, b["\n"]], [2, b["\r"]], [2, b[' ']]]]]],
|
|
2878
|
+
['image/x-portable-pixmap', [[0, b['P3'], [[2, b["\n"]], [2, b["\r"]], [2, b[' ']]]]]],
|
|
2879
2879
|
['image/x-raw-canon', [[0, b["II\032\000\000\000HEAPCCDR"]]]],
|
|
2880
2880
|
['image/x-raw-olympus', [[0, b['IIRO']]]],
|
|
2881
2881
|
['image/x-rgb', [[0, b["\001\332\001\001\000\003"]]]],
|
|
2882
2882
|
['image/x-xbitmap', [[0, b['/* XPM']]]],
|
|
2883
2883
|
['image/x-xcf', [[0, b['gimp xcf ']]]],
|
|
2884
2884
|
['message/news', [[0, b['Article']]]],
|
|
2885
|
-
['message/rfc822', [[0, b['Relay-Version:']], [0, b['#! rnews']], [0, b['N#! rnews']], [0, b['Forward to']], [0, b['Pipe to']], [0, b['Return-Path:']], [0, b['Message-ID:']], [0, b['X-Mailer:']], [0, b['X-Notes-Item:'], [[0..8192, b['Message-ID:']]]]
|
|
2885
|
+
['message/rfc822', [[0, b['Relay-Version:']], [0, b['#! rnews']], [0, b['N#! rnews']], [0, b['Forward to']], [0, b['Pipe to']], [0, b['Return-Path:']], [0, b['Message-ID:']], [0, b['X-Mailer:']], [0, b['X-Notes-Item:'], [[0..8192, b['Message-ID:']]]]]],
|
|
2886
2886
|
['model/vnd.dwf', [[0, b['(DWF V'], [[8, b['.'], [[11, b[')']]]]]]]],
|
|
2887
2887
|
['multipart/appledouble', [[0, b["\000\005\026\a"]]]],
|
|
2888
2888
|
['text/calendar', [[0, b['BEGIN:VCALENDAR'], [[15..360, b["\nVERSION:2.0"]]]]]],
|
|
2889
2889
|
['text/javascript', [[0, b['/* jQuery ']], [0, b['/*! jQuery ']], [0, b['/*!'], [[4..8, b['* jQuery ']]]], [0, b['(function(e,undefined){']], [0, b['!function(window,undefined){']], [0, b['/* Prototype JavaScript ']], [0, b['var Prototype={']], [0, b['function $w(t){']], [0, b['/** @license React']], [0, b['/**'], [[4..8, b['* React ']]]]]],
|
|
2890
2890
|
['text/troff', [[0, b[".\\\""]], [0, b["'\\\""]], [0, b["'.\\\""]], [0, b["\\\""]], [0, b["'''"]]]],
|
|
2891
|
-
['text/vnd.graphviz', [[0, b["(?s)^\\\\s*(?:strict\\\\s+)?(?:di)?graph\\\\b"]], [0, b["(?s)^(?:\\\\s*//[^\\\\n]*\\n){1,10}\\\\s*(?:strict\\\\s+)?(?:di)?graph\\\\b"]], [0, b["(?s)^\\\\s*/\\\\*.{0,1024}?\\\\*/\\\\s*(?:strict\\\\s+)?(?:di)?graph\\\\b"]]]],
|
|
2892
2891
|
['text/vnd.iptc.anpa', [[0, b["\026\026\001"]]]],
|
|
2893
2892
|
['text/x-awk', [[0, b['#!/bin/gawk']], [0, b['#! /bin/gawk']], [0, b['#!/usr/bin/gawk']], [0, b['#! /usr/bin/gawk']], [0, b['#!/usr/local/bin/gawk']], [0, b['#! /usr/local/bin/gawk']], [0, b['#!/bin/awk']], [0, b['#! /bin/awk']], [0, b['#!/usr/bin/awk']], [0, b['#! /usr/bin/awk']]]],
|
|
2894
2893
|
['text/x-diff', [[0, b['diff ']], [0, b['*** ']], [0, b['Only in ']], [0, b['Common subdirectories: ']], [0, b['Index:']]]],
|
|
@@ -2906,12 +2905,12 @@ module Marcel
|
|
|
2906
2905
|
['video/x-sgi-movie', [[0, b["MOVI\000"]], [0, b["MOVI\001"]], [0, b["MOVI\002"]], [0, b["MOVI\376"]], [0, b["MOVI\377"]]]],
|
|
2907
2906
|
['application/gzip', [[0, b["\037\213"]], [0, b["\037\213"]]]],
|
|
2908
2907
|
['application/zlib', [[0, b["x\001"]], [0, b['x^']], [0, b["x\234"]], [0, b["x\332"]]]],
|
|
2908
|
+
['image/bmp;format=compressed', [[0, b['BM'], [[26, b["\001\000"], [[28, b["\000\000"]], [28, b["\001\000"]], [28, b["\004\000"]], [28, b["\b\000"]], [28, b["\020\000"]], [28, b["\030\000"]], [28, b[" \000"]]]]]]]],
|
|
2909
2909
|
['message/rfc822', [[0, nil, [[0, nil, [[0, b['Content-ID:']], [0, b['Content-Location:']], [0, b['Content-Transfer-Encoding:']], [0, b['Content-Type:']], [0, b['Date:']], [0, b['Delivered-To:']], [0, b['From:']], [0, b['Message-ID:']], [0, b['MIME-Version:']], [0, b['Received:']], [0, b['Relay-Version:']], [0, b['Return-Path:']], [0, b['Sent:']], [0, b['Status:']], [0, b['Subject:']], [0, b['To:']], [0, b['User-Agent:']], [0, b['X-Mailer:']], [0, b['X-Originating-IP:']], [0, b["\357\273\277"], [[3, b['Content-ID:']], [3, b['Content-Location:']], [3, b['Content-Transfer-Encoding:']], [3, b['Content-Type:']], [3, b['Date:']], [3, b['Delivered-To:']], [3, b['From:']], [3, b['Message-ID:']], [3, b['MIME-Version:']], [3, b['Received:']], [3, b['Relay-Version:']], [3, b['Return-Path:']], [3, b['Sent:']], [3, b['Status:']], [3, b['Subject:']], [3, b['To:']], [3, b['User-Agent:']], [3, b['X-Mailer:']], [3, b['X-Originating-IP:']]]]]], [0, nil, [[0..1024, b["\nContent-ID:"]], [0..1024, b["\nContent-Location:"]], [0..1024, b["\nContent-Transfer-Encoding:"]], [0..1024, b["\nContent-Type:"]], [0..1024, b["\nDate:"]], [0..1024, b["\nDelivered-To:"]], [0..1024, b["\nFrom:"]], [0..1024, b["\nMIME-Version:"]], [0..1024, b["\nReceived:"]], [0..1024, b["\nRelay-Version:"]], [0..1024, b["\nReturn-Path:"]], [0..1024, b["\nSent:"]], [0..1024, b["\nStatus:"]], [0..1024, b["\nSubject:"]], [0..1024, b["\nTo:"]], [0..1024, b["\nUser-Agent:"]], [0..1024, b["\nX-Mailer:"]], [0..1024, b["\nX-Originating-IP:"]], [0..1024, b["\nDKIM-"]], [0..1024, b["\nARC-"]]]]]]]],
|
|
2910
2910
|
['application/pdf', [[0..128, b['%%'], [[1..512, b['%PDF-1.']]]], [0..128, b['%%'], [[1..512, b['%PDF-2.']]]]]],
|
|
2911
2911
|
['application/vnd.wordperfect', [[0, b["\377WPC"]]]],
|
|
2912
2912
|
['application/x-bzip', [[0, b['BZ0']]]],
|
|
2913
|
-
['application/x-bzip2', [[0,
|
|
2914
|
-
['application/x-dbf', [[0, b["(?s)^[\\\\002\\\\003\\\\060\\\\061\\\\062\\\\103\\\\143\\\\203\\\\213\\\\313\\\\365\\\\345\\\\373].[\\\\001-\\\\014][\\\\001-\\\\037].{4}(?:.[^\\\\000]|[\\\\101-\\\\377].)(?:[^\\\\000\\\\001].|.[^\\\\000]).{31}(?<=[\\\\000][^\\\\000]{0,10})[A-Z@+]"]]]],
|
|
2913
|
+
['application/x-bzip2', [[0, /BZh[1-9]/]]],
|
|
2915
2914
|
['application/x-font-adobe-metric', [[0, b['StartFontMetrics']]]],
|
|
2916
2915
|
['application/x-font-otf', [[0, b["OTTO\000"]]]],
|
|
2917
2916
|
['application/x-font-printer-metric', [[0, b["\000\001"], [[4, b["\000\000Copyr"]]]]]],
|
|
@@ -2926,21 +2925,17 @@ module Marcel
|
|
|
2926
2925
|
['application/x-stata-dta', [[0, b['<stata_dta>']]]],
|
|
2927
2926
|
['application/x-tar', [[257, b["ustar\000"]]]],
|
|
2928
2927
|
['application/x-tika-msoffice', [[0..8, b["\320\317\021\340\241\261\032\341"]]]],
|
|
2929
|
-
['application/x-x509-key;format=der', []],
|
|
2930
2928
|
['application/xhtml+xml', [[0..8192, b['<html xmlns=']]]],
|
|
2931
2929
|
['audio/ac3', [[0, b["\vw"]]]],
|
|
2932
2930
|
['audio/amr', [[0, b["#!AMR\n"]], [0, b['#!AMR']]]],
|
|
2933
|
-
['audio/x-aac', [[0, b['ID3']
|
|
2931
|
+
['audio/x-aac', [[0, b['ID3']]]],
|
|
2934
2932
|
['image/vnd.zbrush.pcx', [[0, b["\n"], [[1, b["\000"]], [1, b["\002"]], [1, b["\003"]], [1, b["\004"]], [1, b["\005"]]]]]],
|
|
2935
2933
|
['message/rfc822', [[0..1000, b["\nMessage-ID:"]]]],
|
|
2936
2934
|
['text/html', [[0..64, b['<!DOCTYPE HTML']], [0..64, b['<!DOCTYPE html']], [0..64, b['<!doctype HTML']], [0..64, b['<!doctype html']], [0..64, b['<HEAD']], [0..64, b['<head']], [0..64, b['<TITLE']], [0..64, b['<title']], [0..64, b['<HTML']], [0..128, b['<html']]]],
|
|
2937
2935
|
['text/vtt', [[0, b["WEBVTT\r"]], [0, b["WEBVTT\n"]], [0, b['0xfeff'], [[2, b["WEBVTT\r"]], [2, b["WEBVTT\n"]]]], [0, b['0xfeff'], [[2, b["WEBVTT\r"]], [2, b["WEBVTT\n"]]]], [0, b['0xefbbbf'], [[3, b["WEBVTT\r"]], [3, b["WEBVTT\n"]]]], [0, b["WEBVTT FILE\r"]], [0, b["WEBVTT FILE\n"]]]],
|
|
2938
|
-
['text/x-matlab', [[0, b["function [a-zA-Z][A-Za-z0-9_]{0,62}\\\\s*="]]]],
|
|
2939
|
-
['text/x-matlab', [[0, b["function [a-zA-Z][A-Za-z0-9_]{0,62}[\\\\r\\\\n]"]]]],
|
|
2940
2936
|
['application/inf', [[0, b['[version]']], [0, b['[strings]']]]],
|
|
2941
2937
|
['application/x-bibtex-text-file', [[0, b['%'], [[2..128, b["\n@article{"]], [2..128, b["\n@book{"]], [2..128, b["\n@inbook{"]], [2..128, b["\n@incollection{"]], [2..128, b["\n@inproceedings{"]], [2..128, b["\n@manual{"]], [2..128, b["\n@misc{"]], [2..128, b["\n@preamble{"]], [2..128, b["\n@phdthesis{"]], [2..128, b["\n@string{"]], [2..128, b["\n@techreport{"]], [2..128, b["\n@unpublished{"]]]]]],
|
|
2942
2938
|
['application/xml', [[0, b['<!--']]]],
|
|
2943
|
-
['audio/x-aac', [[0, b["\\\\377(\\\\360|\\\\361|\\\\370|\\\\371)(\\\\100|\\\\101|\\\\104|\\\\105|\\\\110|\\\\111|\\\\114|\\\\115|\\\\120|\\\\121|\\\\124|\\\\125|\\\\130|\\\\131|\\\\134|\\\\135|\\\\140|\\\\141|\\\\144|\\\\145|\\\\150|\\\\151|\\\\154|\\\\155|\\\\160|\\\\161|\\\\200|\\\\201|\\\\204|\\\\205|\\\\210|\\\\211|\\\\214|\\\\215|\\\\220|\\\\221|\\\\224|\\\\225|\\\\230|\\\\231|\\\\234|\\\\235|\\\\240|\\\\241|\\\\244|\\\\245|\\\\250|\\\\251|\\\\254|\\\\255|\\\\260|\\\\261)(\\\\000|\\\\001|\\\\040|\\\\100|\\\\101|\\\\140|\\\\200|\\\\201|\\\\140|\\\\240|\\\\300|\\\\301|\\\\340)"]]]],
|
|
2944
2939
|
['text/vtt', [[0, b['WEBVTT '], [[10..50, b["\n\n"]]]], [0, b['WEBVTT '], [[10..50, b["\r\r"]]]], [0, b['WEBVTT '], [[10..50, b["\r\n\r\n"]]]]]],
|
|
2945
2940
|
['text/x-chdr', [[0, b['#ifndef ']]]],
|
|
2946
2941
|
['text/x-csrc', [[0, b['#include ']]]],
|
|
@@ -2958,5 +2953,6 @@ module Marcel
|
|
|
2958
2953
|
['text/html', [[128..8192, b['<html']]]],
|
|
2959
2954
|
['text/plain', [[0, b['This is TeX,']], [0, b['This is METAFONT,']], [0, b['/*']], [0, b['//']], [0, b[';;']], [0, b["\376\377"]], [0, b["\377\376"]], [0, b["\357\273\277"]]]],
|
|
2960
2955
|
['text/x-makefile', [[0, b['# Makefile.in generated by']], [0, b['#!make']], [0, b['#!/usr/bin/make']], [0, b['#!/usr/local/bin/make']], [0, b['#!/usr/bin/env make']]]],
|
|
2956
|
+
['audio/mpeg', [[0, b['ID3']]]],
|
|
2961
2957
|
]
|
|
2962
2958
|
end
|
data/lib/marcel/version.rb
CHANGED