| 1 | package File::Type; | ||||||||||||||||||||||||||||
| 2 | 3 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 3 | 3 | ▶ | use warnings; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 4 | |||||||||||||||||||||||||||||
| 5 | 3 | ▶ | use IO::File; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 6 | |||||||||||||||||||||||||||||
| 7 | 3 | our $VERSION = "0.22"; | |||||||||||||||||||||||||||
| 8 | |||||||||||||||||||||||||||||
| 9 | 3 | ▶ | sub new { | ||||||||||||||||||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||
| 10 | 3 | my $class = shift; | |||||||||||||||||||||||||||
| 11 | 3 | my $self = {}; | |||||||||||||||||||||||||||
| 12 | 3 | bless $self, $class; | |||||||||||||||||||||||||||
| 13 | 3 | return $self; | |||||||||||||||||||||||||||
| 14 | } | ||||||||||||||||||||||||||||
| 15 | |||||||||||||||||||||||||||||
| 16 | 18 | ▶ | sub mime_type { | ||||||||||||||||||||||||||
|
Subroutine
mime_type: called CC=5 SCAR=16.2
Pod
documented
| |||||||||||||||||||||||||||||
| 17 | # magically route argument | ||||||||||||||||||||||||||||
| 18 | |||||||||||||||||||||||||||||
| 19 | 18 | my($self, $argument) = @_; | |||||||||||||||||||||||||||
| 20 | |||||||||||||||||||||||||||||
| 21 | 18 | ▶ | if (length $argument > 1024 || $argument =~ m/\n/) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition100%3/3
length $argument > 1024 or $argument =~ /\n/
MC/DC100%2/2
length $argument > 1024 or $argument =~ /\n/
length $argument > 1024
$argument =~ /\n/
Truth table100%3/3
A or B
A= length $argument > 1024B= $argument =~ /\n/
| |||||||||||||||||||||||||||||
| 22 | # assume it's data. Saves a stat call if the data's long | ||||||||||||||||||||||||||||
| 23 | # also avoids stat warning if there's a newline | ||||||||||||||||||||||||||||
| 24 | 7 | return $self->checktype_contents($argument); | |||||||||||||||||||||||||||
| 25 | } | ||||||||||||||||||||||||||||
| 26 | |||||||||||||||||||||||||||||
| 27 | 11 | ▶ | if (-e $argument) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 28 | 9 | ▶ | if (!-d $argument) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 29 | 9 | return $self->checktype_filename($argument); | |||||||||||||||||||||||||||
| 30 | } else { | ||||||||||||||||||||||||||||
| 31 | 0 | return undef; # directories don't have mime types | |||||||||||||||||||||||||||
| 32 | } | ||||||||||||||||||||||||||||
| 33 | } | ||||||||||||||||||||||||||||
| 34 | # otherwise, fall back to checking the string as if it's data again | ||||||||||||||||||||||||||||
| 35 | 2 | return $self->checktype_contents($argument); | |||||||||||||||||||||||||||
| 36 | } | ||||||||||||||||||||||||||||
| 37 | |||||||||||||||||||||||||||||
| 38 | 27 | ▶ | sub checktype_filename { | ||||||||||||||||||||||||||
|
Subroutine
checktype_filename: called CC=2 SCAR=7.0
Pod
documented
| |||||||||||||||||||||||||||||
| 39 | # reads in 16k of selected file, or returns undef if can't open, | ||||||||||||||||||||||||||||
| 40 | # then checks contents | ||||||||||||||||||||||||||||
| 41 | |||||||||||||||||||||||||||||
| 42 | 27 | my($self, $filename) = @_; | |||||||||||||||||||||||||||
| 43 | 27 | ▶ | my $fh = IO::File->new($filename) || return undef; | ||||||||||||||||||||||||||
|
Condition50%1/2
'IO::File'->new($filename) || (return undef)
MC/DC0%0/1
'IO::File'->new($filename) || (return undef)
'IO::File'->new($filename)
Truth table50%1/2
A
A= 'IO::File'->new($filename)
| |||||||||||||||||||||||||||||
| 44 | 27 | my $data; | |||||||||||||||||||||||||||
| 45 | 27 | $fh->read($data, 16*1024); | |||||||||||||||||||||||||||
| 46 | 27 | $fh->close; | |||||||||||||||||||||||||||
| 47 | 27 | return $self->checktype_contents($data); | |||||||||||||||||||||||||||
| 48 | } | ||||||||||||||||||||||||||||
| 49 | |||||||||||||||||||||||||||||
| 50 | 54 | ▶ | sub checktype_contents { | ||||||||||||||||||||||||||
|
Subroutine
checktype_contents: called CC=532 SCAR=101.8
Pod
documented
| |||||||||||||||||||||||||||||
| 51 | # checks file contents | ||||||||||||||||||||||||||||
| 52 | |||||||||||||||||||||||||||||
| 53 | 54 | my($self, $data) = @_; | |||||||||||||||||||||||||||
| 54 | 54 | my $substr; | |||||||||||||||||||||||||||
| 55 | |||||||||||||||||||||||||||||
| 56 | # autogenerated code begins | ||||||||||||||||||||||||||||
| 57 | |||||||||||||||||||||||||||||
| 58 | 54 | ▶ | if ($data =~ m[^TADS]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 59 | 0 | return q{application/x-tads-game}; | |||||||||||||||||||||||||||
| 60 | } | ||||||||||||||||||||||||||||
| 61 | 54 | ▶ | if ($data =~ m[^Core\001]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 62 | 0 | return q{application/x-executable-file}; | |||||||||||||||||||||||||||
| 63 | } | ||||||||||||||||||||||||||||
| 64 | 54 | ▶ | if ($data =~ m[^AMANDA\:\ TAPESTART\ DATE]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 65 | 0 | return q{application/x-amanda-header}; | |||||||||||||||||||||||||||
| 66 | } | ||||||||||||||||||||||||||||
| 67 | 54 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 68 | 54 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 69 | 54 | ▶ | if (pack('H*', '000003f3') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 70 | 0 | return q{application/x-executable-file}; | |||||||||||||||||||||||||||
| 71 | } | ||||||||||||||||||||||||||||
| 72 | } | ||||||||||||||||||||||||||||
| 73 | 54 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 74 | 54 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 75 | 54 | ▶ | if (pack('H*', '000003e7') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 76 | 0 | return q{application/x-library-file}; | |||||||||||||||||||||||||||
| 77 | } | ||||||||||||||||||||||||||||
| 78 | } | ||||||||||||||||||||||||||||
| 79 | 54 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 80 | 54 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 81 | 54 | ▶ | if (pack('H*', '000001b3') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 82 | 0 | return q{video/mpeg}; | |||||||||||||||||||||||||||
| 83 | } | ||||||||||||||||||||||||||||
| 84 | } | ||||||||||||||||||||||||||||
| 85 | 54 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 86 | 54 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 87 | 54 | ▶ | if (pack('H*', '000001ba') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 88 | 0 | return q{video/mpeg}; | |||||||||||||||||||||||||||
| 89 | } | ||||||||||||||||||||||||||||
| 90 | } | ||||||||||||||||||||||||||||
| 91 | 54 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 92 | 54 | $substr = substr($data, 0, 2); | |||||||||||||||||||||||||||
| 93 | 54 | ▶ | if (pack('H*', 'fff0') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 94 | 0 | return q{audio/mpeg}; | |||||||||||||||||||||||||||
| 95 | } | ||||||||||||||||||||||||||||
| 96 | } | ||||||||||||||||||||||||||||
| 97 | 54 | ▶ | if ($data =~ m[^MOVI]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 98 | 0 | return q{video/x-sgi-movie}; | |||||||||||||||||||||||||||
| 99 | } | ||||||||||||||||||||||||||||
| 100 | 54 | ▶ | if (length $data > 4) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 101 | 54 | $substr = substr($data, 4, 1024); | |||||||||||||||||||||||||||
| 102 | 54 | ▶ | if (defined $substr && $substr =~ m[^moov]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
defined $substr and $substr =~ /^moov/
MC/DC50%1/2
defined $substr and $substr =~ /^moov/
defined $substr
$substr =~ /^moov/
Truth table66%2/3
A and B
A= defined $substrB= $substr =~ /^moov/
| |||||||||||||||||||||||||||||
| 103 | 3 | return q{video/quicktime}; | |||||||||||||||||||||||||||
| 104 | } | ||||||||||||||||||||||||||||
| 105 | } | ||||||||||||||||||||||||||||
| 106 | 51 | ▶ | if (length $data > 4) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 107 | 51 | $substr = substr($data, 4, 1024); | |||||||||||||||||||||||||||
| 108 | 51 | ▶ | if (defined $substr && $substr =~ m[^mdat]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $substr and $substr =~ /^mdat/
MC/DC0%0/2
defined $substr and $substr =~ /^mdat/
defined $substr
$substr =~ /^mdat/
Truth table33%1/3
A and B
A= defined $substrB= $substr =~ /^mdat/
| |||||||||||||||||||||||||||||
| 109 | 0 | return q{video/quicktime}; | |||||||||||||||||||||||||||
| 110 | } | ||||||||||||||||||||||||||||
| 111 | } | ||||||||||||||||||||||||||||
| 112 | 51 | ▶ | if (length $data > 8) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 113 | 51 | $substr = substr($data, 8, 1024); | |||||||||||||||||||||||||||
| 114 | 51 | ▶ | if (defined $substr && $substr =~ m[^mp42]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $substr and $substr =~ /^mp42/
MC/DC0%0/2
defined $substr and $substr =~ /^mp42/
defined $substr
$substr =~ /^mp42/
Truth table33%1/3
A and B
A= defined $substrB= $substr =~ /^mp42/
| |||||||||||||||||||||||||||||
| 115 | 0 | return q{video/quicktime}; | |||||||||||||||||||||||||||
| 116 | } | ||||||||||||||||||||||||||||
| 117 | } | ||||||||||||||||||||||||||||
| 118 | 51 | ▶ | if (length $data > 12) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 119 | 51 | $substr = substr($data, 12, 1024); | |||||||||||||||||||||||||||
| 120 | 51 | ▶ | if (defined $substr && $substr =~ m[^mdat]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $substr and $substr =~ /^mdat/
MC/DC0%0/2
defined $substr and $substr =~ /^mdat/
defined $substr
$substr =~ /^mdat/
Truth table33%1/3
A and B
A= defined $substrB= $substr =~ /^mdat/
| |||||||||||||||||||||||||||||
| 121 | 0 | return q{video/quicktime}; | |||||||||||||||||||||||||||
| 122 | } | ||||||||||||||||||||||||||||
| 123 | } | ||||||||||||||||||||||||||||
| 124 | 51 | ▶ | if (length $data > 36) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 125 | 51 | $substr = substr($data, 36, 1024); | |||||||||||||||||||||||||||
| 126 | 51 | ▶ | if (defined $substr && $substr =~ m[^mdat]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $substr and $substr =~ /^mdat/
MC/DC0%0/2
defined $substr and $substr =~ /^mdat/
defined $substr
$substr =~ /^mdat/
Truth table33%1/3
A and B
A= defined $substrB= $substr =~ /^mdat/
| |||||||||||||||||||||||||||||
| 127 | 0 | return q{video/quicktime}; | |||||||||||||||||||||||||||
| 128 | } | ||||||||||||||||||||||||||||
| 129 | } | ||||||||||||||||||||||||||||
| 130 | 51 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 131 | 51 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 132 | 51 | ▶ | if (pack('H*', '3026b275') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 133 | 3 | return q{video/x-ms-asf}; | |||||||||||||||||||||||||||
| 134 | } | ||||||||||||||||||||||||||||
| 135 | } | ||||||||||||||||||||||||||||
| 136 | 48 | ▶ | if ($data =~ m[^ASF\ ]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 137 | 0 | return q{audio/x-ms-asx}; | |||||||||||||||||||||||||||
| 138 | } | ||||||||||||||||||||||||||||
| 139 | 48 | ▶ | if ($data =~ m[^\<ASX]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 140 | 0 | return q{audio/x-ms-asx}; | |||||||||||||||||||||||||||
| 141 | } | ||||||||||||||||||||||||||||
| 142 | 48 | ▶ | if ($data =~ m[^\<asx]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 143 | 0 | return q{audio/x-ms-asx}; | |||||||||||||||||||||||||||
| 144 | } | ||||||||||||||||||||||||||||
| 145 | 48 | ▶ | if ($data =~ m[^FiLeStArTfIlEsTaRt]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 146 | 0 | return q{text/x-apple-binscii}; | |||||||||||||||||||||||||||
| 147 | } | ||||||||||||||||||||||||||||
| 148 | 48 | ▶ | if ($data =~ m[^\x0aGL]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 149 | 0 | return q{application/data}; | |||||||||||||||||||||||||||
| 150 | } | ||||||||||||||||||||||||||||
| 151 | 48 | ▶ | if ($data =~ m[^\x76\xff]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 152 | 0 | return q{application/data}; | |||||||||||||||||||||||||||
| 153 | } | ||||||||||||||||||||||||||||
| 154 | 48 | ▶ | if ($data =~ m[^NuFile]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 155 | 0 | return q{application/data}; | |||||||||||||||||||||||||||
| 156 | } | ||||||||||||||||||||||||||||
| 157 | 48 | ▶ | if ($data =~ m[^N\xf5F\xe9l\xe5]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 158 | 0 | return q{application/data}; | |||||||||||||||||||||||||||
| 159 | } | ||||||||||||||||||||||||||||
| 160 | 48 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 161 | 48 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 162 | 48 | ▶ | if (pack('H*', '00051600') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 163 | 0 | return q{application/data}; | |||||||||||||||||||||||||||
| 164 | } | ||||||||||||||||||||||||||||
| 165 | } | ||||||||||||||||||||||||||||
| 166 | 48 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 167 | 48 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 168 | 48 | ▶ | if (pack('H*', '00051607') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 169 | 0 | return q{application/data}; | |||||||||||||||||||||||||||
| 170 | } | ||||||||||||||||||||||||||||
| 171 | } | ||||||||||||||||||||||||||||
| 172 | 48 | ▶ | if (length $data > 257) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 173 | 33 | $substr = substr($data, 257, 1024); | |||||||||||||||||||||||||||
| 174 | 33 | ▶ | if (defined $substr && $substr =~ m[^ustar\0]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
defined $substr and $substr =~ /^ustar\0/
MC/DC50%1/2
defined $substr and $substr =~ /^ustar\0/
defined $substr
$substr =~ /^ustar\0/
Truth table66%2/3
A and B
A= defined $substrB= $substr =~ /^ustar\0/
| |||||||||||||||||||||||||||||
| 175 | 3 | return q{application/x-tar}; | |||||||||||||||||||||||||||
| 176 | } | ||||||||||||||||||||||||||||
| 177 | } | ||||||||||||||||||||||||||||
| 178 | 45 | ▶ | if (length $data > 257) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 179 | 30 | $substr = substr($data, 257, 1024); | |||||||||||||||||||||||||||
| 180 | 30 | ▶ | if (defined $substr && $substr =~ m[^ustar\040\040\0]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $substr and $substr =~ /^ustar\040\040\0/
MC/DC0%0/2
defined $substr and $substr =~ /^ustar\040\040\0/
defined $substr
$substr =~ /^ustar\040\040\0/
Truth table33%1/3
A and B
A= defined $substrB= $substr =~ /^ustar\040\040\0/
| |||||||||||||||||||||||||||||
| 181 | 0 | return q{application/x-gtar}; | |||||||||||||||||||||||||||
| 182 | } | ||||||||||||||||||||||||||||
| 183 | } | ||||||||||||||||||||||||||||
| 184 | 45 | ▶ | if ($data =~ m[^070707]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 185 | 0 | return q{application/x-cpio}; | |||||||||||||||||||||||||||
| 186 | } | ||||||||||||||||||||||||||||
| 187 | 45 | ▶ | if ($data =~ m[^070701]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 188 | 0 | return q{application/x-cpio}; | |||||||||||||||||||||||||||
| 189 | } | ||||||||||||||||||||||||||||
| 190 | 45 | ▶ | if ($data =~ m[^070702]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 191 | 0 | return q{application/x-cpio}; | |||||||||||||||||||||||||||
| 192 | } | ||||||||||||||||||||||||||||
| 193 | 45 | ▶ | if ($data =~ m[^\!\<arch\>\ndebian]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 194 | 0 | return q{application/x-dpkg}; | |||||||||||||||||||||||||||
| 195 | } | ||||||||||||||||||||||||||||
| 196 | 45 | ▶ | if ($data =~ m[^\=\<ar\>]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 197 | 0 | return q{application/x-ar}; | |||||||||||||||||||||||||||
| 198 | } | ||||||||||||||||||||||||||||
| 199 | 45 | ▶ | if ($data =~ m[^\!\<arch\>\n__________E]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 200 | 0 | return q{application/x-ar}; | |||||||||||||||||||||||||||
| 201 | } | ||||||||||||||||||||||||||||
| 202 | 45 | ▶ | if ($data =~ m[^\-h\-]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 203 | 0 | return q{application/data}; | |||||||||||||||||||||||||||
| 204 | } | ||||||||||||||||||||||||||||
| 205 | 45 | ▶ | if ($data =~ m[^\!\<arch\>]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 206 | 0 | return q{application/x-ar}; | |||||||||||||||||||||||||||
| 207 | } | ||||||||||||||||||||||||||||
| 208 | 45 | ▶ | if ($data =~ m[^\<ar\>]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 209 | 0 | return q{application/x-ar}; | |||||||||||||||||||||||||||
| 210 | } | ||||||||||||||||||||||||||||
| 211 | 45 | ▶ | if ($data =~ m[^\=\<ar\>]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 212 | 0 | return q{application/x-ar}; | |||||||||||||||||||||||||||
| 213 | } | ||||||||||||||||||||||||||||
| 214 | 45 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 215 | 45 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 216 | 45 | ▶ | if (pack('H*', '65ff0000') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 217 | 0 | return q{application/x-ar}; | |||||||||||||||||||||||||||
| 218 | } | ||||||||||||||||||||||||||||
| 219 | } | ||||||||||||||||||||||||||||
| 220 | 45 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 221 | 45 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 222 | 45 | ▶ | if (pack('H*', '3c61723e') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 223 | 0 | return q{application/x-ar}; | |||||||||||||||||||||||||||
| 224 | } | ||||||||||||||||||||||||||||
| 225 | } | ||||||||||||||||||||||||||||
| 226 | 45 | ▶ | if ($data =~ m[^\032archive]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 227 | 0 | return q{application/data}; | |||||||||||||||||||||||||||
| 228 | } | ||||||||||||||||||||||||||||
| 229 | 45 | ▶ | if ($data =~ m[^HPAK]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 230 | 0 | return q{application/data}; | |||||||||||||||||||||||||||
| 231 | } | ||||||||||||||||||||||||||||
| 232 | 45 | ▶ | if ($data =~ m[^\351\,\001JAM\ ]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 233 | 0 | return q{application/data}; | |||||||||||||||||||||||||||
| 234 | } | ||||||||||||||||||||||||||||
| 235 | 45 | ▶ | if (length $data > 2) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 236 | 45 | $substr = substr($data, 2, 1024); | |||||||||||||||||||||||||||
| 237 | 45 | ▶ | if (defined $substr && $substr =~ m[^\-lh0\-]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $substr and $substr =~ /^\-lh0\-/
MC/DC0%0/2
defined $substr and $substr =~ /^\-lh0\-/
defined $substr
$substr =~ /^\-lh0\-/
Truth table33%1/3
A and B
A= defined $substrB= $substr =~ /^\-lh0\-/
| |||||||||||||||||||||||||||||
| 238 | 0 | return q{application/x-lha}; | |||||||||||||||||||||||||||
| 239 | } | ||||||||||||||||||||||||||||
| 240 | } | ||||||||||||||||||||||||||||
| 241 | 45 | ▶ | if (length $data > 2) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 242 | 45 | $substr = substr($data, 2, 1024); | |||||||||||||||||||||||||||
| 243 | 45 | ▶ | if (defined $substr && $substr =~ m[^\-lh1\-]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $substr and $substr =~ /^\-lh1\-/
MC/DC0%0/2
defined $substr and $substr =~ /^\-lh1\-/
defined $substr
$substr =~ /^\-lh1\-/
Truth table33%1/3
A and B
A= defined $substrB= $substr =~ /^\-lh1\-/
| |||||||||||||||||||||||||||||
| 244 | 0 | return q{application/x-lha}; | |||||||||||||||||||||||||||
| 245 | } | ||||||||||||||||||||||||||||
| 246 | } | ||||||||||||||||||||||||||||
| 247 | 45 | ▶ | if (length $data > 2) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 248 | 45 | $substr = substr($data, 2, 1024); | |||||||||||||||||||||||||||
| 249 | 45 | ▶ | if (defined $substr && $substr =~ m[^\-lz4\-]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $substr and $substr =~ /^\-lz4\-/
MC/DC0%0/2
defined $substr and $substr =~ /^\-lz4\-/
defined $substr
$substr =~ /^\-lz4\-/
Truth table33%1/3
A and B
A= defined $substrB= $substr =~ /^\-lz4\-/
| |||||||||||||||||||||||||||||
| 250 | 0 | return q{application/x-lha}; | |||||||||||||||||||||||||||
| 251 | } | ||||||||||||||||||||||||||||
| 252 | } | ||||||||||||||||||||||||||||
| 253 | 45 | ▶ | if (length $data > 2) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 254 | 45 | $substr = substr($data, 2, 1024); | |||||||||||||||||||||||||||
| 255 | 45 | ▶ | if (defined $substr && $substr =~ m[^\-lz5\-]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $substr and $substr =~ /^\-lz5\-/
MC/DC0%0/2
defined $substr and $substr =~ /^\-lz5\-/
defined $substr
$substr =~ /^\-lz5\-/
Truth table33%1/3
A and B
A= defined $substrB= $substr =~ /^\-lz5\-/
| |||||||||||||||||||||||||||||
| 256 | 0 | return q{application/x-lha}; | |||||||||||||||||||||||||||
| 257 | } | ||||||||||||||||||||||||||||
| 258 | } | ||||||||||||||||||||||||||||
| 259 | 45 | ▶ | if (length $data > 2) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 260 | 45 | $substr = substr($data, 2, 1024); | |||||||||||||||||||||||||||
| 261 | 45 | ▶ | if (defined $substr && $substr =~ m[^\-lzs\-]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $substr and $substr =~ /^\-lzs\-/
MC/DC0%0/2
defined $substr and $substr =~ /^\-lzs\-/
defined $substr
$substr =~ /^\-lzs\-/
Truth table33%1/3
A and B
A= defined $substrB= $substr =~ /^\-lzs\-/
| |||||||||||||||||||||||||||||
| 262 | 0 | return q{application/x-lha}; | |||||||||||||||||||||||||||
| 263 | } | ||||||||||||||||||||||||||||
| 264 | } | ||||||||||||||||||||||||||||
| 265 | 45 | ▶ | if (length $data > 2) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 266 | 45 | $substr = substr($data, 2, 1024); | |||||||||||||||||||||||||||
| 267 | 45 | ▶ | if (defined $substr && $substr =~ m[^\-lh40\-]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $substr and $substr =~ /^\-lh40\-/
MC/DC0%0/2
defined $substr and $substr =~ /^\-lh40\-/
defined $substr
$substr =~ /^\-lh40\-/
Truth table33%1/3
A and B
A= defined $substrB= $substr =~ /^\-lh40\-/
| |||||||||||||||||||||||||||||
| 268 | 0 | return q{application/x-lha}; | |||||||||||||||||||||||||||
| 269 | } | ||||||||||||||||||||||||||||
| 270 | } | ||||||||||||||||||||||||||||
| 271 | 45 | ▶ | if (length $data > 2) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 272 | 45 | $substr = substr($data, 2, 1024); | |||||||||||||||||||||||||||
| 273 | 45 | ▶ | if (defined $substr && $substr =~ m[^\-lhd\-]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $substr and $substr =~ /^\-lhd\-/
MC/DC0%0/2
defined $substr and $substr =~ /^\-lhd\-/
defined $substr
$substr =~ /^\-lhd\-/
Truth table33%1/3
A and B
A= defined $substrB= $substr =~ /^\-lhd\-/
| |||||||||||||||||||||||||||||
| 274 | 0 | return q{application/x-lha}; | |||||||||||||||||||||||||||
| 275 | } | ||||||||||||||||||||||||||||
| 276 | } | ||||||||||||||||||||||||||||
| 277 | 45 | ▶ | if (length $data > 2) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 278 | 45 | $substr = substr($data, 2, 1024); | |||||||||||||||||||||||||||
| 279 | 45 | ▶ | if (defined $substr && $substr =~ m[^\-lh2\-]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $substr and $substr =~ /^\-lh2\-/
MC/DC0%0/2
defined $substr and $substr =~ /^\-lh2\-/
defined $substr
$substr =~ /^\-lh2\-/
Truth table33%1/3
A and B
A= defined $substrB= $substr =~ /^\-lh2\-/
| |||||||||||||||||||||||||||||
| 280 | 0 | return q{application/x-lha}; | |||||||||||||||||||||||||||
| 281 | } | ||||||||||||||||||||||||||||
| 282 | } | ||||||||||||||||||||||||||||
| 283 | 45 | ▶ | if (length $data > 2) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 284 | 45 | $substr = substr($data, 2, 1024); | |||||||||||||||||||||||||||
| 285 | 45 | ▶ | if (defined $substr && $substr =~ m[^\-lh3\-]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $substr and $substr =~ /^\-lh3\-/
MC/DC0%0/2
defined $substr and $substr =~ /^\-lh3\-/
defined $substr
$substr =~ /^\-lh3\-/
Truth table33%1/3
A and B
A= defined $substrB= $substr =~ /^\-lh3\-/
| |||||||||||||||||||||||||||||
| 286 | 0 | return q{application/x-lha}; | |||||||||||||||||||||||||||
| 287 | } | ||||||||||||||||||||||||||||
| 288 | } | ||||||||||||||||||||||||||||
| 289 | 45 | ▶ | if (length $data > 2) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 290 | 45 | $substr = substr($data, 2, 1024); | |||||||||||||||||||||||||||
| 291 | 45 | ▶ | if (defined $substr && $substr =~ m[^\-lh4\-]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $substr and $substr =~ /^\-lh4\-/
MC/DC0%0/2
defined $substr and $substr =~ /^\-lh4\-/
defined $substr
$substr =~ /^\-lh4\-/
Truth table33%1/3
A and B
A= defined $substrB= $substr =~ /^\-lh4\-/
| |||||||||||||||||||||||||||||
| 292 | 0 | return q{application/x-lha}; | |||||||||||||||||||||||||||
| 293 | } | ||||||||||||||||||||||||||||
| 294 | } | ||||||||||||||||||||||||||||
| 295 | 45 | ▶ | if (length $data > 2) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 296 | 45 | $substr = substr($data, 2, 1024); | |||||||||||||||||||||||||||
| 297 | 45 | ▶ | if (defined $substr && $substr =~ m[^\-lh5\-]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $substr and $substr =~ /^\-lh5\-/
MC/DC0%0/2
defined $substr and $substr =~ /^\-lh5\-/
defined $substr
$substr =~ /^\-lh5\-/
Truth table33%1/3
A and B
A= defined $substrB= $substr =~ /^\-lh5\-/
| |||||||||||||||||||||||||||||
| 298 | 0 | return q{application/x-lha}; | |||||||||||||||||||||||||||
| 299 | } | ||||||||||||||||||||||||||||
| 300 | } | ||||||||||||||||||||||||||||
| 301 | 45 | ▶ | if ($data =~ m[^Rar\!]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 302 | 0 | return q{application/x-rar}; | |||||||||||||||||||||||||||
| 303 | } | ||||||||||||||||||||||||||||
| 304 | 45 | ▶ | if ($data =~ m[^SQSH]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 305 | 0 | return q{application/data}; | |||||||||||||||||||||||||||
| 306 | } | ||||||||||||||||||||||||||||
| 307 | 45 | ▶ | if ($data =~ m[^UC2\x1a]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 308 | 0 | return q{application/data}; | |||||||||||||||||||||||||||
| 309 | } | ||||||||||||||||||||||||||||
| 310 | 45 | ▶ | if ($data =~ m[^PK\003\004]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 311 | 3 | return q{application/zip}; | |||||||||||||||||||||||||||
| 312 | } | ||||||||||||||||||||||||||||
| 313 | 42 | ▶ | if (length $data > 10) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 314 | 42 | $substr = substr($data, 10, 1024); | |||||||||||||||||||||||||||
| 315 | 42 | ▶ | if (defined $substr && $substr =~ m[^\#\ This\ is\ a\ shell\ archive]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $substr and $substr =~ /^\#\ This\ is\ a\ shell\ archive/
MC/DC0%0/2
defined $substr and $substr =~ /^\#\ This\ is\ a\ shell\ archive/
defined $substr
$substr =~ /^\#\ This\ is\ a\ shell\ archive/
Truth table33%1/3
A and B
A= defined $substrB= $substr =~ /^\#\ This\ is\ a\ shell\ archive/
| |||||||||||||||||||||||||||||
| 316 | 0 | return q{application/x-shar}; | |||||||||||||||||||||||||||
| 317 | } | ||||||||||||||||||||||||||||
| 318 | } | ||||||||||||||||||||||||||||
| 319 | 42 | ▶ | if ($data =~ m[^\*STA]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 320 | 0 | return q{application/data}; | |||||||||||||||||||||||||||
| 321 | } | ||||||||||||||||||||||||||||
| 322 | 42 | ▶ | if ($data =~ m[^2278]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 323 | 0 | return q{application/data}; | |||||||||||||||||||||||||||
| 324 | } | ||||||||||||||||||||||||||||
| 325 | 42 | ▶ | if ($data =~ m[^\000\004\036\212\200]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 326 | 0 | return q{application/core}; | |||||||||||||||||||||||||||
| 327 | } | ||||||||||||||||||||||||||||
| 328 | 42 | ▶ | if ($data =~ m[^\.snd]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 329 | 0 | return q{audio/basic}; | |||||||||||||||||||||||||||
| 330 | } | ||||||||||||||||||||||||||||
| 331 | 42 | ▶ | if ($data =~ m[^MThd]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 332 | 0 | return q{audio/midi}; | |||||||||||||||||||||||||||
| 333 | } | ||||||||||||||||||||||||||||
| 334 | 42 | ▶ | if ($data =~ m[^CTMF]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 335 | 0 | return q{audio/x-cmf}; | |||||||||||||||||||||||||||
| 336 | } | ||||||||||||||||||||||||||||
| 337 | 42 | ▶ | if ($data =~ m[^SBI]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 338 | 0 | return q{audio/x-sbi}; | |||||||||||||||||||||||||||
| 339 | } | ||||||||||||||||||||||||||||
| 340 | 42 | ▶ | if ($data =~ m[^Creative\ Voice\ File]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 341 | 0 | return q{audio/x-voc}; | |||||||||||||||||||||||||||
| 342 | } | ||||||||||||||||||||||||||||
| 343 | 42 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 344 | 42 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 345 | 42 | ▶ | if (pack('H*', '4e54524b') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 346 | 0 | return q{audio/x-multitrack}; | |||||||||||||||||||||||||||
| 347 | } | ||||||||||||||||||||||||||||
| 348 | } | ||||||||||||||||||||||||||||
| 349 | 42 | ▶ | if (length $data > 8) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 350 | 42 | $substr = substr($data, 8, 1024); | |||||||||||||||||||||||||||
| 351 | 42 | ▶ | if (defined $substr && $substr =~ m[^AVI]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
defined $substr and $substr =~ /^AVI/
MC/DC50%1/2
defined $substr and $substr =~ /^AVI/
defined $substr
$substr =~ /^AVI/
Truth table66%2/3
A and B
A= defined $substrB= $substr =~ /^AVI/
| |||||||||||||||||||||||||||||
| 352 | 3 | return q{video/x-msvideo}; | |||||||||||||||||||||||||||
| 353 | } | ||||||||||||||||||||||||||||
| 354 | } | ||||||||||||||||||||||||||||
| 355 | 39 | ▶ | if (length $data > 8) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 356 | 39 | $substr = substr($data, 8, 1024); | |||||||||||||||||||||||||||
| 357 | 39 | ▶ | if (defined $substr && $substr =~ m[^WAVE]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
defined $substr and $substr =~ /^WAVE/
MC/DC50%1/2
defined $substr and $substr =~ /^WAVE/
defined $substr
$substr =~ /^WAVE/
Truth table66%2/3
A and B
A= defined $substrB= $substr =~ /^WAVE/
| |||||||||||||||||||||||||||||
| 358 | 6 | return q{audio/x-wav}; | |||||||||||||||||||||||||||
| 359 | } | ||||||||||||||||||||||||||||
| 360 | } | ||||||||||||||||||||||||||||
| 361 | 33 | ▶ | if ($data =~ m[^EMOD]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 362 | 0 | return q{audio/x-emod}; | |||||||||||||||||||||||||||
| 363 | } | ||||||||||||||||||||||||||||
| 364 | 33 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 365 | 33 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 366 | 33 | ▶ | if (pack('H*', '2e7261fd') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 367 | 0 | return q{audio/x-pn-realaudio}; | |||||||||||||||||||||||||||
| 368 | } | ||||||||||||||||||||||||||||
| 369 | } | ||||||||||||||||||||||||||||
| 370 | 33 | ▶ | if ($data =~ m[^MTM]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 371 | 0 | return q{audio/x-multitrack}; | |||||||||||||||||||||||||||
| 372 | } | ||||||||||||||||||||||||||||
| 373 | 33 | ▶ | if ($data =~ m[^if]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 374 | 0 | return q{audio/x-669-mod}; | |||||||||||||||||||||||||||
| 375 | } | ||||||||||||||||||||||||||||
| 376 | 33 | ▶ | if ($data =~ m[^FAR]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 377 | 0 | return q{audio/mod}; | |||||||||||||||||||||||||||
| 378 | } | ||||||||||||||||||||||||||||
| 379 | 33 | ▶ | if ($data =~ m[^MAS_U]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 380 | 0 | return q{audio/x-multimate-mod}; | |||||||||||||||||||||||||||
| 381 | } | ||||||||||||||||||||||||||||
| 382 | 33 | ▶ | if (length $data > 0x2c) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 383 | 33 | $substr = substr($data, 0x2c, 1024); | |||||||||||||||||||||||||||
| 384 | 33 | ▶ | if (defined $substr && $substr =~ m[^SCRM]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $substr and $substr =~ /^SCRM/
MC/DC0%0/2
defined $substr and $substr =~ /^SCRM/
defined $substr
$substr =~ /^SCRM/
Truth table33%1/3
A and B
A= defined $substrB= $substr =~ /^SCRM/
| |||||||||||||||||||||||||||||
| 385 | 0 | return q{audio/x-st3-mod}; | |||||||||||||||||||||||||||
| 386 | } | ||||||||||||||||||||||||||||
| 387 | } | ||||||||||||||||||||||||||||
| 388 | 33 | ▶ | if ($data =~ m[^GF1PATCH110\0ID\#000002\0]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 389 | 0 | return q{audio/x-gus-patch}; | |||||||||||||||||||||||||||
| 390 | } | ||||||||||||||||||||||||||||
| 391 | 33 | ▶ | if ($data =~ m[^GF1PATCH100\0ID\#000002\0]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 392 | 0 | return q{audio/x-gus-patch}; | |||||||||||||||||||||||||||
| 393 | } | ||||||||||||||||||||||||||||
| 394 | 33 | ▶ | if ($data =~ m[^JN]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 395 | 0 | return q{audio/x-669-mod}; | |||||||||||||||||||||||||||
| 396 | } | ||||||||||||||||||||||||||||
| 397 | 33 | ▶ | if ($data =~ m[^UN05]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 398 | 0 | return q{audio/x-mikmod-uni}; | |||||||||||||||||||||||||||
| 399 | } | ||||||||||||||||||||||||||||
| 400 | 33 | ▶ | if ($data =~ m[^Extended\ Module\:]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 401 | 0 | return q{audio/x-ft2-mod}; | |||||||||||||||||||||||||||
| 402 | } | ||||||||||||||||||||||||||||
| 403 | 33 | ▶ | if (length $data > 21) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 404 | 33 | $substr = substr($data, 21, 1024); | |||||||||||||||||||||||||||
| 405 | 33 | ▶ | if (defined $substr && $substr =~ m[^\!SCREAM\!]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $substr and $substr =~ /^\!SCREAM\!/
MC/DC0%0/2
defined $substr and $substr =~ /^\!SCREAM\!/
defined $substr
$substr =~ /^\!SCREAM\!/
Truth table33%1/3
A and B
A= defined $substrB= $substr =~ /^\!SCREAM\!/
| |||||||||||||||||||||||||||||
| 406 | 0 | return q{audio/x-st2-mod}; | |||||||||||||||||||||||||||
| 407 | } | ||||||||||||||||||||||||||||
| 408 | } | ||||||||||||||||||||||||||||
| 409 | 33 | ▶ | if (length $data > 1080) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 410 | 12 | $substr = substr($data, 1080, 1024); | |||||||||||||||||||||||||||
| 411 | 12 | ▶ | if (defined $substr && $substr =~ m[^M\.K\.]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $substr and $substr =~ /^M\.K\./
MC/DC0%0/2
defined $substr and $substr =~ /^M\.K\./
defined $substr
$substr =~ /^M\.K\./
Truth table33%1/3
A and B
A= defined $substrB= $substr =~ /^M\.K\./
| |||||||||||||||||||||||||||||
| 412 | 0 | return q{audio/x-protracker-mod}; | |||||||||||||||||||||||||||
| 413 | } | ||||||||||||||||||||||||||||
| 414 | } | ||||||||||||||||||||||||||||
| 415 | 33 | ▶ | if (length $data > 1080) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 416 | 12 | $substr = substr($data, 1080, 1024); | |||||||||||||||||||||||||||
| 417 | 12 | ▶ | if (defined $substr && $substr =~ m[^M\!K\!]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $substr and $substr =~ /^M\!K\!/
MC/DC0%0/2
defined $substr and $substr =~ /^M\!K\!/
defined $substr
$substr =~ /^M\!K\!/
Truth table33%1/3
A and B
A= defined $substrB= $substr =~ /^M\!K\!/
| |||||||||||||||||||||||||||||
| 418 | 0 | return q{audio/x-protracker-mod}; | |||||||||||||||||||||||||||
| 419 | } | ||||||||||||||||||||||||||||
| 420 | } | ||||||||||||||||||||||||||||
| 421 | 33 | ▶ | if (length $data > 1080) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 422 | 12 | $substr = substr($data, 1080, 1024); | |||||||||||||||||||||||||||
| 423 | 12 | ▶ | if (defined $substr && $substr =~ m[^FLT4]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $substr and $substr =~ /^FLT4/
MC/DC0%0/2
defined $substr and $substr =~ /^FLT4/
defined $substr
$substr =~ /^FLT4/
Truth table33%1/3
A and B
A= defined $substrB= $substr =~ /^FLT4/
| |||||||||||||||||||||||||||||
| 424 | 0 | return q{audio/x-startracker-mod}; | |||||||||||||||||||||||||||
| 425 | } | ||||||||||||||||||||||||||||
| 426 | } | ||||||||||||||||||||||||||||
| 427 | 33 | ▶ | if (length $data > 1080) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 428 | 12 | $substr = substr($data, 1080, 1024); | |||||||||||||||||||||||||||
| 429 | 12 | ▶ | if (defined $substr && $substr =~ m[^4CHN]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $substr and $substr =~ /^4CHN/
MC/DC0%0/2
defined $substr and $substr =~ /^4CHN/
defined $substr
$substr =~ /^4CHN/
Truth table33%1/3
A and B
A= defined $substrB= $substr =~ /^4CHN/
| |||||||||||||||||||||||||||||
| 430 | 0 | return q{audio/x-fasttracker-mod}; | |||||||||||||||||||||||||||
| 431 | } | ||||||||||||||||||||||||||||
| 432 | } | ||||||||||||||||||||||||||||
| 433 | 33 | ▶ | if (length $data > 1080) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 434 | 12 | $substr = substr($data, 1080, 1024); | |||||||||||||||||||||||||||
| 435 | 12 | ▶ | if (defined $substr && $substr =~ m[^6CHN]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $substr and $substr =~ /^6CHN/
MC/DC0%0/2
defined $substr and $substr =~ /^6CHN/
defined $substr
$substr =~ /^6CHN/
Truth table33%1/3
A and B
A= defined $substrB= $substr =~ /^6CHN/
| |||||||||||||||||||||||||||||
| 436 | 0 | return q{audio/x-fasttracker-mod}; | |||||||||||||||||||||||||||
| 437 | } | ||||||||||||||||||||||||||||
| 438 | } | ||||||||||||||||||||||||||||
| 439 | 33 | ▶ | if (length $data > 1080) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 440 | 12 | $substr = substr($data, 1080, 1024); | |||||||||||||||||||||||||||
| 441 | 12 | ▶ | if (defined $substr && $substr =~ m[^8CHN]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $substr and $substr =~ /^8CHN/
MC/DC0%0/2
defined $substr and $substr =~ /^8CHN/
defined $substr
$substr =~ /^8CHN/
Truth table33%1/3
A and B
A= defined $substrB= $substr =~ /^8CHN/
| |||||||||||||||||||||||||||||
| 442 | 0 | return q{audio/x-fasttracker-mod}; | |||||||||||||||||||||||||||
| 443 | } | ||||||||||||||||||||||||||||
| 444 | } | ||||||||||||||||||||||||||||
| 445 | 33 | ▶ | if (length $data > 1080) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 446 | 12 | $substr = substr($data, 1080, 1024); | |||||||||||||||||||||||||||
| 447 | 12 | ▶ | if (defined $substr && $substr =~ m[^CD81]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $substr and $substr =~ /^CD81/
MC/DC0%0/2
defined $substr and $substr =~ /^CD81/
defined $substr
$substr =~ /^CD81/
Truth table33%1/3
A and B
A= defined $substrB= $substr =~ /^CD81/
| |||||||||||||||||||||||||||||
| 448 | 0 | return q{audio/x-oktalyzer-mod}; | |||||||||||||||||||||||||||
| 449 | } | ||||||||||||||||||||||||||||
| 450 | } | ||||||||||||||||||||||||||||
| 451 | 33 | ▶ | if (length $data > 1080) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 452 | 12 | $substr = substr($data, 1080, 1024); | |||||||||||||||||||||||||||
| 453 | 12 | ▶ | if (defined $substr && $substr =~ m[^OKTA]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $substr and $substr =~ /^OKTA/
MC/DC0%0/2
defined $substr and $substr =~ /^OKTA/
defined $substr
$substr =~ /^OKTA/
Truth table33%1/3
A and B
A= defined $substrB= $substr =~ /^OKTA/
| |||||||||||||||||||||||||||||
| 454 | 0 | return q{audio/x-oktalyzer-mod}; | |||||||||||||||||||||||||||
| 455 | } | ||||||||||||||||||||||||||||
| 456 | } | ||||||||||||||||||||||||||||
| 457 | 33 | ▶ | if (length $data > 1080) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 458 | 12 | $substr = substr($data, 1080, 1024); | |||||||||||||||||||||||||||
| 459 | 12 | ▶ | if (defined $substr && $substr =~ m[^16CN]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $substr and $substr =~ /^16CN/
MC/DC0%0/2
defined $substr and $substr =~ /^16CN/
defined $substr
$substr =~ /^16CN/
Truth table33%1/3
A and B
A= defined $substrB= $substr =~ /^16CN/
| |||||||||||||||||||||||||||||
| 460 | 0 | return q{audio/x-taketracker-mod}; | |||||||||||||||||||||||||||
| 461 | } | ||||||||||||||||||||||||||||
| 462 | } | ||||||||||||||||||||||||||||
| 463 | 33 | ▶ | if (length $data > 1080) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 464 | 12 | $substr = substr($data, 1080, 1024); | |||||||||||||||||||||||||||
| 465 | 12 | ▶ | if (defined $substr && $substr =~ m[^32CN]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $substr and $substr =~ /^32CN/
MC/DC0%0/2
defined $substr and $substr =~ /^32CN/
defined $substr
$substr =~ /^32CN/
Truth table33%1/3
A and B
A= defined $substrB= $substr =~ /^32CN/
| |||||||||||||||||||||||||||||
| 466 | 0 | return q{audio/x-taketracker-mod}; | |||||||||||||||||||||||||||
| 467 | } | ||||||||||||||||||||||||||||
| 468 | } | ||||||||||||||||||||||||||||
| 469 | 33 | ▶ | if ($data =~ m[^TOC]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 470 | 0 | return q{audio/x-toc}; | |||||||||||||||||||||||||||
| 471 | } | ||||||||||||||||||||||||||||
| 472 | 33 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 473 | 33 | $substr = substr($data, 0, 2); | |||||||||||||||||||||||||||
| 474 | 33 | ▶ | if (pack('H*', 'fffa') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 475 | 0 | return q{audio/mp3}; | |||||||||||||||||||||||||||
| 476 | } | ||||||||||||||||||||||||||||
| 477 | } | ||||||||||||||||||||||||||||
| 478 | 33 | ▶ | if ($data =~ m[^ID3]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 479 | 3 | return q{audio/mp3}; | |||||||||||||||||||||||||||
| 480 | } | ||||||||||||||||||||||||||||
| 481 | 30 | ▶ | if ($data =~ m[^\/\/]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 482 | 0 | return q{text/cpp}; | |||||||||||||||||||||||||||
| 483 | } | ||||||||||||||||||||||||||||
| 484 | 30 | ▶ | if ($data =~ m[^\\1cw\ ]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 485 | 0 | return q{application/data}; | |||||||||||||||||||||||||||
| 486 | } | ||||||||||||||||||||||||||||
| 487 | 30 | ▶ | if ($data =~ m[^\\1cw]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 488 | 0 | return q{application/data}; | |||||||||||||||||||||||||||
| 489 | } | ||||||||||||||||||||||||||||
| 490 | 30 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 491 | 30 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 492 | 30 | ▶ | if (pack('H*', '85011400') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 493 | 0 | return q{application/data}; | |||||||||||||||||||||||||||
| 494 | } | ||||||||||||||||||||||||||||
| 495 | } | ||||||||||||||||||||||||||||
| 496 | 30 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 497 | 30 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 498 | 30 | ▶ | if (pack('H*', '8501cb00') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 499 | 0 | return q{application/data}; | |||||||||||||||||||||||||||
| 500 | } | ||||||||||||||||||||||||||||
| 501 | } | ||||||||||||||||||||||||||||
| 502 | 30 | ▶ | if (length $data > 4) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 503 | 30 | $substr = substr($data, 4, 1024); | |||||||||||||||||||||||||||
| 504 | 30 | ▶ | if (defined $substr && $substr =~ m[^pipe]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $substr and $substr =~ /^pipe/
MC/DC0%0/2
defined $substr and $substr =~ /^pipe/
defined $substr
$substr =~ /^pipe/
Truth table33%1/3
A and B
A= defined $substrB= $substr =~ /^pipe/
| |||||||||||||||||||||||||||||
| 505 | 0 | return q{application/data}; | |||||||||||||||||||||||||||
| 506 | } | ||||||||||||||||||||||||||||
| 507 | } | ||||||||||||||||||||||||||||
| 508 | 30 | ▶ | if (length $data > 4) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 509 | 30 | $substr = substr($data, 4, 1024); | |||||||||||||||||||||||||||
| 510 | 30 | ▶ | if (defined $substr && $substr =~ m[^prof]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $substr and $substr =~ /^prof/
MC/DC0%0/2
defined $substr and $substr =~ /^prof/
defined $substr
$substr =~ /^prof/
Truth table33%1/3
A and B
A= defined $substrB= $substr =~ /^prof/
| |||||||||||||||||||||||||||||
| 511 | 0 | return q{application/data}; | |||||||||||||||||||||||||||
| 512 | } | ||||||||||||||||||||||||||||
| 513 | } | ||||||||||||||||||||||||||||
| 514 | 30 | ▶ | if ($data =~ m[^\:\ shell]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 515 | 0 | return q{application/data}; | |||||||||||||||||||||||||||
| 516 | } | ||||||||||||||||||||||||||||
| 517 | 30 | ▶ | if ($data =~ m[^\#\!\/bin\/sh]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 518 | 0 | return q{application/x-sh}; | |||||||||||||||||||||||||||
| 519 | } | ||||||||||||||||||||||||||||
| 520 | 30 | ▶ | if ($data =~ m[^\#\!\ \/bin\/sh]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 521 | 0 | return q{application/x-sh}; | |||||||||||||||||||||||||||
| 522 | } | ||||||||||||||||||||||||||||
| 523 | 30 | ▶ | if ($data =~ m[^\#\!\ \/bin\/sh]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 524 | 0 | return q{application/x-sh}; | |||||||||||||||||||||||||||
| 525 | } | ||||||||||||||||||||||||||||
| 526 | 30 | ▶ | if ($data =~ m[^\#\!\/bin\/csh]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 527 | 0 | return q{application/x-csh}; | |||||||||||||||||||||||||||
| 528 | } | ||||||||||||||||||||||||||||
| 529 | 30 | ▶ | if ($data =~ m[^\#\!\ \/bin\/csh]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 530 | 0 | return q{application/x-csh}; | |||||||||||||||||||||||||||
| 531 | } | ||||||||||||||||||||||||||||
| 532 | 30 | ▶ | if ($data =~ m[^\#\!\ \/bin\/csh]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 533 | 0 | return q{application/x-csh}; | |||||||||||||||||||||||||||
| 534 | } | ||||||||||||||||||||||||||||
| 535 | 30 | ▶ | if ($data =~ m[^\#\!\/bin\/ksh]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 536 | 0 | return q{application/x-ksh}; | |||||||||||||||||||||||||||
| 537 | } | ||||||||||||||||||||||||||||
| 538 | 30 | ▶ | if ($data =~ m[^\#\!\ \/bin\/ksh]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 539 | 0 | return q{application/x-ksh}; | |||||||||||||||||||||||||||
| 540 | } | ||||||||||||||||||||||||||||
| 541 | 30 | ▶ | if ($data =~ m[^\#\!\ \/bin\/ksh]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 542 | 0 | return q{application/x-ksh}; | |||||||||||||||||||||||||||
| 543 | } | ||||||||||||||||||||||||||||
| 544 | 30 | ▶ | if ($data =~ m[^\#\!\/bin\/tcsh]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 545 | 0 | return q{application/x-csh}; | |||||||||||||||||||||||||||
| 546 | } | ||||||||||||||||||||||||||||
| 547 | 30 | ▶ | if ($data =~ m[^\#\!\ \/bin\/tcsh]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 548 | 0 | return q{application/x-csh}; | |||||||||||||||||||||||||||
| 549 | } | ||||||||||||||||||||||||||||
| 550 | 30 | ▶ | if ($data =~ m[^\#\!\ \/bin\/tcsh]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 551 | 0 | return q{application/x-csh}; | |||||||||||||||||||||||||||
| 552 | } | ||||||||||||||||||||||||||||
| 553 | 30 | ▶ | if ($data =~ m[^\#\!\/usr\/local\/tcsh]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 554 | 0 | return q{application/x-csh}; | |||||||||||||||||||||||||||
| 555 | } | ||||||||||||||||||||||||||||
| 556 | 30 | ▶ | if ($data =~ m[^\#\!\ \/usr\/local\/tcsh]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 557 | 0 | return q{application/x-csh}; | |||||||||||||||||||||||||||
| 558 | } | ||||||||||||||||||||||||||||
| 559 | 30 | ▶ | if ($data =~ m[^\#\!\/usr\/local\/bin\/tcsh]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 560 | 0 | return q{application/x-csh}; | |||||||||||||||||||||||||||
| 561 | } | ||||||||||||||||||||||||||||
| 562 | 30 | ▶ | if ($data =~ m[^\#\!\ \/usr\/local\/bin\/tcsh]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 563 | 0 | return q{application/x-csh}; | |||||||||||||||||||||||||||
| 564 | } | ||||||||||||||||||||||||||||
| 565 | 30 | ▶ | if ($data =~ m[^\#\!\ \/usr\/local\/bin\/tcsh]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 566 | 0 | return q{application/x-csh}; | |||||||||||||||||||||||||||
| 567 | } | ||||||||||||||||||||||||||||
| 568 | 30 | ▶ | if ($data =~ m[^\#\!\/usr\/local\/bin\/zsh]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 569 | 0 | return q{application/x-zsh}; | |||||||||||||||||||||||||||
| 570 | } | ||||||||||||||||||||||||||||
| 571 | 30 | ▶ | if ($data =~ m[^\#\!\ \/usr\/local\/bin\/zsh]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 572 | 0 | return q{application/x-zsh}; | |||||||||||||||||||||||||||
| 573 | } | ||||||||||||||||||||||||||||
| 574 | 30 | ▶ | if ($data =~ m[^\#\!\ \/usr\/local\/bin\/zsh]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 575 | 0 | return q{application/x-zsh}; | |||||||||||||||||||||||||||
| 576 | } | ||||||||||||||||||||||||||||
| 577 | 30 | ▶ | if ($data =~ m[^\#\!\/usr\/local\/bin\/ash]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 578 | 0 | return q{application/x-sh}; | |||||||||||||||||||||||||||
| 579 | } | ||||||||||||||||||||||||||||
| 580 | 30 | ▶ | if ($data =~ m[^\#\!\ \/usr\/local\/bin\/ash]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 581 | 0 | return q{application/x-zsh}; | |||||||||||||||||||||||||||
| 582 | } | ||||||||||||||||||||||||||||
| 583 | 30 | ▶ | if ($data =~ m[^\#\!\ \/usr\/local\/bin\/ash]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 584 | 0 | return q{application/x-zsh}; | |||||||||||||||||||||||||||
| 585 | } | ||||||||||||||||||||||||||||
| 586 | 30 | ▶ | if ($data =~ m[^\#\!\/usr\/local\/bin\/ae]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 587 | 0 | return q{text/script}; | |||||||||||||||||||||||||||
| 588 | } | ||||||||||||||||||||||||||||
| 589 | 30 | ▶ | if ($data =~ m[^\#\!\ \/usr\/local\/bin\/ae]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 590 | 0 | return q{text/script}; | |||||||||||||||||||||||||||
| 591 | } | ||||||||||||||||||||||||||||
| 592 | 30 | ▶ | if ($data =~ m[^\#\!\ \/usr\/local\/bin\/ae]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 593 | 0 | return q{text/script}; | |||||||||||||||||||||||||||
| 594 | } | ||||||||||||||||||||||||||||
| 595 | 30 | ▶ | if ($data =~ m[^\#\!\/bin\/nawk]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 596 | 0 | return q{application/x-awk}; | |||||||||||||||||||||||||||
| 597 | } | ||||||||||||||||||||||||||||
| 598 | 30 | ▶ | if ($data =~ m[^\#\!\ \/bin\/nawk]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 599 | 0 | return q{application/x-awk}; | |||||||||||||||||||||||||||
| 600 | } | ||||||||||||||||||||||||||||
| 601 | 30 | ▶ | if ($data =~ m[^\#\!\ \/bin\/nawk]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 602 | 0 | return q{application/x-awk}; | |||||||||||||||||||||||||||
| 603 | } | ||||||||||||||||||||||||||||
| 604 | 30 | ▶ | if ($data =~ m[^\#\!\/usr\/bin\/nawk]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 605 | 0 | return q{application/x-awk}; | |||||||||||||||||||||||||||
| 606 | } | ||||||||||||||||||||||||||||
| 607 | 30 | ▶ | if ($data =~ m[^\#\!\ \/usr\/bin\/nawk]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 608 | 0 | return q{application/x-awk}; | |||||||||||||||||||||||||||
| 609 | } | ||||||||||||||||||||||||||||
| 610 | 30 | ▶ | if ($data =~ m[^\#\!\ \/usr\/bin\/nawk]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 611 | 0 | return q{application/x-awk}; | |||||||||||||||||||||||||||
| 612 | } | ||||||||||||||||||||||||||||
| 613 | 30 | ▶ | if ($data =~ m[^\#\!\/usr\/local\/bin\/nawk]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 614 | 0 | return q{application/x-awk}; | |||||||||||||||||||||||||||
| 615 | } | ||||||||||||||||||||||||||||
| 616 | 30 | ▶ | if ($data =~ m[^\#\!\ \/usr\/local\/bin\/nawk]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 617 | 0 | return q{application/x-awk}; | |||||||||||||||||||||||||||
| 618 | } | ||||||||||||||||||||||||||||
| 619 | 30 | ▶ | if ($data =~ m[^\#\!\ \/usr\/local\/bin\/nawk]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 620 | 0 | return q{application/x-awk}; | |||||||||||||||||||||||||||
| 621 | } | ||||||||||||||||||||||||||||
| 622 | 30 | ▶ | if ($data =~ m[^\#\!\/bin\/gawk]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 623 | 0 | return q{application/x-awk}; | |||||||||||||||||||||||||||
| 624 | } | ||||||||||||||||||||||||||||
| 625 | 30 | ▶ | if ($data =~ m[^\#\!\ \/bin\/gawk]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 626 | 0 | return q{application/x-awk}; | |||||||||||||||||||||||||||
| 627 | } | ||||||||||||||||||||||||||||
| 628 | 30 | ▶ | if ($data =~ m[^\#\!\ \/bin\/gawk]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 629 | 0 | return q{application/x-awk}; | |||||||||||||||||||||||||||
| 630 | } | ||||||||||||||||||||||||||||
| 631 | 30 | ▶ | if ($data =~ m[^\#\!\/usr\/bin\/gawk]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 632 | 0 | return q{application/x-awk}; | |||||||||||||||||||||||||||
| 633 | } | ||||||||||||||||||||||||||||
| 634 | 30 | ▶ | if ($data =~ m[^\#\!\ \/usr\/bin\/gawk]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 635 | 0 | return q{application/x-awk}; | |||||||||||||||||||||||||||
| 636 | } | ||||||||||||||||||||||||||||
| 637 | 30 | ▶ | if ($data =~ m[^\#\!\ \/usr\/bin\/gawk]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 638 | 0 | return q{application/x-awk}; | |||||||||||||||||||||||||||
| 639 | } | ||||||||||||||||||||||||||||
| 640 | 30 | ▶ | if ($data =~ m[^\#\!\/usr\/local\/bin\/gawk]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 641 | 0 | return q{application/x-awk}; | |||||||||||||||||||||||||||
| 642 | } | ||||||||||||||||||||||||||||
| 643 | 30 | ▶ | if ($data =~ m[^\#\!\ \/usr\/local\/bin\/gawk]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 644 | 0 | return q{application/x-awk}; | |||||||||||||||||||||||||||
| 645 | } | ||||||||||||||||||||||||||||
| 646 | 30 | ▶ | if ($data =~ m[^\#\!\ \/usr\/local\/bin\/gawk]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 647 | 0 | return q{application/x-awk}; | |||||||||||||||||||||||||||
| 648 | } | ||||||||||||||||||||||||||||
| 649 | 30 | ▶ | if ($data =~ m[^\#\!\/bin\/awk]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 650 | 0 | return q{application/x-awk}; | |||||||||||||||||||||||||||
| 651 | } | ||||||||||||||||||||||||||||
| 652 | 30 | ▶ | if ($data =~ m[^\#\!\ \/bin\/awk]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 653 | 0 | return q{application/x-awk}; | |||||||||||||||||||||||||||
| 654 | } | ||||||||||||||||||||||||||||
| 655 | 30 | ▶ | if ($data =~ m[^\#\!\ \/bin\/awk]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 656 | 0 | return q{application/x-awk}; | |||||||||||||||||||||||||||
| 657 | } | ||||||||||||||||||||||||||||
| 658 | 30 | ▶ | if ($data =~ m[^\#\!\/usr\/bin\/awk]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 659 | 0 | return q{application/x-awk}; | |||||||||||||||||||||||||||
| 660 | } | ||||||||||||||||||||||||||||
| 661 | 30 | ▶ | if ($data =~ m[^\#\!\ \/usr\/bin\/awk]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 662 | 0 | return q{application/x-awk}; | |||||||||||||||||||||||||||
| 663 | } | ||||||||||||||||||||||||||||
| 664 | 30 | ▶ | if ($data =~ m[^\#\!\ \/usr\/bin\/awk]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 665 | 0 | return q{application/x-awk}; | |||||||||||||||||||||||||||
| 666 | } | ||||||||||||||||||||||||||||
| 667 | 30 | ▶ | if ($data =~ m[^BEGIN]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 668 | 0 | return q{application/x-awk}; | |||||||||||||||||||||||||||
| 669 | } | ||||||||||||||||||||||||||||
| 670 | 30 | ▶ | if ($data =~ m[^\#\!\/bin\/perl]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 671 | 0 | return q{application/x-perl}; | |||||||||||||||||||||||||||
| 672 | } | ||||||||||||||||||||||||||||
| 673 | 30 | ▶ | if ($data =~ m[^\#\!\ \/bin\/perl]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 674 | 0 | return q{application/x-perl}; | |||||||||||||||||||||||||||
| 675 | } | ||||||||||||||||||||||||||||
| 676 | 30 | ▶ | if ($data =~ m[^\#\!\ \/bin\/perl]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 677 | 0 | return q{application/x-perl}; | |||||||||||||||||||||||||||
| 678 | } | ||||||||||||||||||||||||||||
| 679 | 30 | ▶ | if ($data =~ m[^eval\ \"exec\ \/bin\/perl]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 680 | 0 | return q{application/x-perl}; | |||||||||||||||||||||||||||
| 681 | } | ||||||||||||||||||||||||||||
| 682 | 30 | ▶ | if ($data =~ m[^\#\!\/usr\/bin\/perl]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 683 | 3 | return q{application/x-perl}; | |||||||||||||||||||||||||||
| 684 | } | ||||||||||||||||||||||||||||
| 685 | 27 | ▶ | if ($data =~ m[^\#\!\ \/usr\/bin\/perl]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 686 | 0 | return q{application/x-perl}; | |||||||||||||||||||||||||||
| 687 | } | ||||||||||||||||||||||||||||
| 688 | 27 | ▶ | if ($data =~ m[^\#\!\ \/usr\/bin\/perl]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 689 | 0 | return q{application/x-perl}; | |||||||||||||||||||||||||||
| 690 | } | ||||||||||||||||||||||||||||
| 691 | 27 | ▶ | if ($data =~ m[^eval\ \"exec\ \/usr\/bin\/perl]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 692 | 0 | return q{application/x-perl}; | |||||||||||||||||||||||||||
| 693 | } | ||||||||||||||||||||||||||||
| 694 | 27 | ▶ | if ($data =~ m[^\#\!\/usr\/local\/bin\/perl]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 695 | 0 | return q{application/x-perl}; | |||||||||||||||||||||||||||
| 696 | } | ||||||||||||||||||||||||||||
| 697 | 27 | ▶ | if ($data =~ m[^\#\!\ \/usr\/local\/bin\/perl]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 698 | 0 | return q{application/x-perl}; | |||||||||||||||||||||||||||
| 699 | } | ||||||||||||||||||||||||||||
| 700 | 27 | ▶ | if ($data =~ m[^\#\!\ \/usr\/local\/bin\/perl]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 701 | 0 | return q{application/x-perl}; | |||||||||||||||||||||||||||
| 702 | } | ||||||||||||||||||||||||||||
| 703 | 27 | ▶ | if ($data =~ m[^eval\ \"exec\ \/usr\/local\/bin\/perl]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 704 | 0 | return q{application/x-perl}; | |||||||||||||||||||||||||||
| 705 | } | ||||||||||||||||||||||||||||
| 706 | 27 | ▶ | if ($data =~ m[^\#\!\/bin\/rc]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 707 | 0 | return q{text/script}; | |||||||||||||||||||||||||||
| 708 | } | ||||||||||||||||||||||||||||
| 709 | 27 | ▶ | if ($data =~ m[^\#\!\ \/bin\/rc]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 710 | 0 | return q{text/script}; | |||||||||||||||||||||||||||
| 711 | } | ||||||||||||||||||||||||||||
| 712 | 27 | ▶ | if ($data =~ m[^\#\!\ \/bin\/rc]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 713 | 0 | return q{text/script}; | |||||||||||||||||||||||||||
| 714 | } | ||||||||||||||||||||||||||||
| 715 | 27 | ▶ | if ($data =~ m[^\#\!\/bin\/bash]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 716 | 0 | return q{application/x-sh}; | |||||||||||||||||||||||||||
| 717 | } | ||||||||||||||||||||||||||||
| 718 | 27 | ▶ | if ($data =~ m[^\#\!\ \/bin\/bash]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 719 | 0 | return q{application/x-sh}; | |||||||||||||||||||||||||||
| 720 | } | ||||||||||||||||||||||||||||
| 721 | 27 | ▶ | if ($data =~ m[^\#\!\ \/bin\/bash]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 722 | 0 | return q{application/x-sh}; | |||||||||||||||||||||||||||
| 723 | } | ||||||||||||||||||||||||||||
| 724 | 27 | ▶ | if ($data =~ m[^\#\!\/usr\/local\/bin\/bash]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 725 | 0 | return q{application/x-sh}; | |||||||||||||||||||||||||||
| 726 | } | ||||||||||||||||||||||||||||
| 727 | 27 | ▶ | if ($data =~ m[^\#\!\ \/usr\/local\/bin\/bash]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 728 | 0 | return q{application/x-sh}; | |||||||||||||||||||||||||||
| 729 | } | ||||||||||||||||||||||||||||
| 730 | 27 | ▶ | if ($data =~ m[^\#\!\ \/usr\/local\/bin\/bash]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 731 | 0 | return q{application/x-sh}; | |||||||||||||||||||||||||||
| 732 | } | ||||||||||||||||||||||||||||
| 733 | 27 | ▶ | if ($data =~ m[^\#\!\ \/]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 734 | 0 | return q{text/script}; | |||||||||||||||||||||||||||
| 735 | } | ||||||||||||||||||||||||||||
| 736 | 27 | ▶ | if ($data =~ m[^\#\!\ \/]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 737 | 0 | return q{text/script}; | |||||||||||||||||||||||||||
| 738 | } | ||||||||||||||||||||||||||||
| 739 | 27 | ▶ | if ($data =~ m[^\#\!\/]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 740 | 0 | return q{text/script}; | |||||||||||||||||||||||||||
| 741 | } | ||||||||||||||||||||||||||||
| 742 | 27 | ▶ | if ($data =~ m[^\#\!\ ]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 743 | 0 | return q{text/script}; | |||||||||||||||||||||||||||
| 744 | } | ||||||||||||||||||||||||||||
| 745 | 27 | ▶ | if ($data =~ m[^\037\235]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 746 | 0 | return q{application/compress}; | |||||||||||||||||||||||||||
| 747 | } | ||||||||||||||||||||||||||||
| 748 | 27 | ▶ | if ($data =~ m[^\037\213]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 749 | 3 | return q{application/x-gzip}; | |||||||||||||||||||||||||||
| 750 | } | ||||||||||||||||||||||||||||
| 751 | 24 | ▶ | if ($data =~ m[^\037\036]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 752 | 0 | return q{application/data}; | |||||||||||||||||||||||||||
| 753 | } | ||||||||||||||||||||||||||||
| 754 | 24 | ▶ | if ($data =~ m[^\377\037]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 755 | 0 | return q{application/data}; | |||||||||||||||||||||||||||
| 756 | } | ||||||||||||||||||||||||||||
| 757 | 24 | ▶ | if ($data =~ m[^BZh]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 758 | 3 | return q{application/x-bzip2}; | |||||||||||||||||||||||||||
| 759 | } | ||||||||||||||||||||||||||||
| 760 | 21 | ▶ | if ($data =~ m[^\037\237]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 761 | 0 | return q{application/data}; | |||||||||||||||||||||||||||
| 762 | } | ||||||||||||||||||||||||||||
| 763 | 21 | ▶ | if ($data =~ m[^\037\236]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 764 | 0 | return q{application/data}; | |||||||||||||||||||||||||||
| 765 | } | ||||||||||||||||||||||||||||
| 766 | 21 | ▶ | if ($data =~ m[^\037\240]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 767 | 0 | return q{application/data}; | |||||||||||||||||||||||||||
| 768 | } | ||||||||||||||||||||||||||||
| 769 | 21 | ▶ | if ($data =~ m[^BZ]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 770 | 0 | return q{application/x-bzip}; | |||||||||||||||||||||||||||
| 771 | } | ||||||||||||||||||||||||||||
| 772 | 21 | ▶ | if ($data =~ m[^\x89\x4c\x5a\x4f\x00\x0d\x0a\x1a\x0a]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 773 | 0 | return q{application/data}; | |||||||||||||||||||||||||||
| 774 | } | ||||||||||||||||||||||||||||
| 775 | 21 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 776 | 21 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 777 | 21 | ▶ | if (pack('H*', '011257') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 778 | 0 | return q{application/core}; | |||||||||||||||||||||||||||
| 779 | } | ||||||||||||||||||||||||||||
| 780 | } | ||||||||||||||||||||||||||||
| 781 | 21 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 782 | 21 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 783 | 21 | ▶ | if (pack('H*', '13579ace') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 784 | 0 | return q{application/x-gdbm}; | |||||||||||||||||||||||||||
| 785 | } | ||||||||||||||||||||||||||||
| 786 | } | ||||||||||||||||||||||||||||
| 787 | 21 | ▶ | if ($data =~ m[^GDBM]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 788 | 0 | return q{application/x-gdbm}; | |||||||||||||||||||||||||||
| 789 | } | ||||||||||||||||||||||||||||
| 790 | 21 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 791 | 21 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 792 | 21 | ▶ | if (pack('H*', '061561') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 793 | 0 | return q{application/x-db}; | |||||||||||||||||||||||||||
| 794 | } | ||||||||||||||||||||||||||||
| 795 | } | ||||||||||||||||||||||||||||
| 796 | 21 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 797 | 21 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 798 | 21 | ▶ | if (pack('H*', '053162') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 799 | 0 | return q{application/x-db}; | |||||||||||||||||||||||||||
| 800 | } | ||||||||||||||||||||||||||||
| 801 | } | ||||||||||||||||||||||||||||
| 802 | 21 | ▶ | if ($data =~ m[^\=\<list\>\n\<protocol\ bbn\-m]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 803 | 0 | return q{application/data}; | |||||||||||||||||||||||||||
| 804 | } | ||||||||||||||||||||||||||||
| 805 | 21 | ▶ | if ($data =~ m[^diff\ ]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 806 | 0 | return q{text/x-patch}; | |||||||||||||||||||||||||||
| 807 | } | ||||||||||||||||||||||||||||
| 808 | 21 | ▶ | if ($data =~ m[^\*\*\*\ ]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 809 | 0 | return q{text/x-patch}; | |||||||||||||||||||||||||||
| 810 | } | ||||||||||||||||||||||||||||
| 811 | 21 | ▶ | if ($data =~ m[^Only\ in\ ]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 812 | 0 | return q{text/x-patch}; | |||||||||||||||||||||||||||
| 813 | } | ||||||||||||||||||||||||||||
| 814 | 21 | ▶ | if ($data =~ m[^Common\ subdirectories\:\ ]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 815 | 0 | return q{text/x-patch}; | |||||||||||||||||||||||||||
| 816 | } | ||||||||||||||||||||||||||||
| 817 | 21 | ▶ | if ($data =~ m[^\!\<arch\>\n________64E]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 818 | 0 | return q{application/data}; | |||||||||||||||||||||||||||
| 819 | } | ||||||||||||||||||||||||||||
| 820 | 21 | ▶ | if ($data =~ m[^\377\377\177]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 821 | 0 | return q{application/data}; | |||||||||||||||||||||||||||
| 822 | } | ||||||||||||||||||||||||||||
| 823 | 21 | ▶ | if ($data =~ m[^\377\377\174]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 824 | 0 | return q{application/data}; | |||||||||||||||||||||||||||
| 825 | } | ||||||||||||||||||||||||||||
| 826 | 21 | ▶ | if ($data =~ m[^\377\377\176]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 827 | 0 | return q{application/data}; | |||||||||||||||||||||||||||
| 828 | } | ||||||||||||||||||||||||||||
| 829 | 21 | ▶ | if ($data =~ m[^\033c\033]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 830 | 0 | return q{application/data}; | |||||||||||||||||||||||||||
| 831 | } | ||||||||||||||||||||||||||||
| 832 | 21 | ▶ | if ($data =~ m[^\!\<PDF\>\!\n]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 833 | 0 | return q{application/x-prof}; | |||||||||||||||||||||||||||
| 834 | } | ||||||||||||||||||||||||||||
| 835 | 21 | ▶ | if ($data =~ m[^\177ELF]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 836 | 0 | return q{application/x-executable-file}; | |||||||||||||||||||||||||||
| 837 | } | ||||||||||||||||||||||||||||
| 838 | 21 | ▶ | if ($data =~ m[^\366\366\366\366]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 839 | 0 | return q{application/x-pc-floppy}; | |||||||||||||||||||||||||||
| 840 | } | ||||||||||||||||||||||||||||
| 841 | 21 | ▶ | if (length $data > 0774) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 842 | 15 | $substr = substr($data, 0774, 2); | |||||||||||||||||||||||||||
| 843 | 15 | ▶ | if (pack('H*', 'dabe') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 844 | 0 | return q{application/data}; | |||||||||||||||||||||||||||
| 845 | } | ||||||||||||||||||||||||||||
| 846 | } | ||||||||||||||||||||||||||||
| 847 | 21 | ▶ | if ($data =~ m[^\-rom1fs\-\0]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 848 | 0 | return q{application/x-filesystem}; | |||||||||||||||||||||||||||
| 849 | } | ||||||||||||||||||||||||||||
| 850 | 21 | ▶ | if (length $data > 0x18b) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 851 | 15 | $substr = substr($data, 0x18b, 1024); | |||||||||||||||||||||||||||
| 852 | 15 | ▶ | if (defined $substr && $substr =~ m[^OS\/2]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $substr and $substr =~ m[^OS\/2]
MC/DC0%0/2
defined $substr and $substr =~ m[^OS\/2]
defined $substr
$substr =~ m[^OS\/2]
Truth table33%1/3
A and B
A= defined $substrB= $substr =~ m[^OS\/2]
| |||||||||||||||||||||||||||||
| 853 | 0 | return q{application/x-bootable}; | |||||||||||||||||||||||||||
| 854 | } | ||||||||||||||||||||||||||||
| 855 | } | ||||||||||||||||||||||||||||
| 856 | 21 | ▶ | if ($data =~ m[^FONT]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 857 | 0 | return q{font/x-vfont}; | |||||||||||||||||||||||||||
| 858 | } | ||||||||||||||||||||||||||||
| 859 | 21 | ▶ | if ($data =~ m[^\%\!PS\-AdobeFont\-1\.0]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 860 | 0 | return q{font/type1}; | |||||||||||||||||||||||||||
| 861 | } | ||||||||||||||||||||||||||||
| 862 | 21 | ▶ | if (length $data > 6) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 863 | 21 | $substr = substr($data, 6, 1024); | |||||||||||||||||||||||||||
| 864 | 21 | ▶ | if (defined $substr && $substr =~ m[^\%\!PS\-AdobeFont\-1\.0]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $substr and $substr =~ /^\%\!PS\-AdobeFont\-1\.0/
MC/DC0%0/2
defined $substr and $substr =~ /^\%\!PS\-AdobeFont\-1\.0/
defined $substr
$substr =~ /^\%\!PS\-AdobeFont\-1\.0/
Truth table33%1/3
A and B
A= defined $substrB= $substr =~ /^\%\!PS\-AdobeFont\-1\.0/
| |||||||||||||||||||||||||||||
| 865 | 0 | return q{font/type1}; | |||||||||||||||||||||||||||
| 866 | } | ||||||||||||||||||||||||||||
| 867 | } | ||||||||||||||||||||||||||||
| 868 | 21 | ▶ | if ($data =~ m[^STARTFONT\040]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 869 | 0 | return q{font/x-bdf}; | |||||||||||||||||||||||||||
| 870 | } | ||||||||||||||||||||||||||||
| 871 | 21 | ▶ | if ($data =~ m[^\001fcp]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 872 | 0 | return q{font/x-pcf}; | |||||||||||||||||||||||||||
| 873 | } | ||||||||||||||||||||||||||||
| 874 | 21 | ▶ | if ($data =~ m[^D1\.0\015]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 875 | 0 | return q{font/x-speedo}; | |||||||||||||||||||||||||||
| 876 | } | ||||||||||||||||||||||||||||
| 877 | 21 | ▶ | if ($data =~ m[^flf]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 878 | 0 | return q{font/x-figlet}; | |||||||||||||||||||||||||||
| 879 | } | ||||||||||||||||||||||||||||
| 880 | 21 | ▶ | if ($data =~ m[^flc]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 881 | 0 | return q{application/x-font}; | |||||||||||||||||||||||||||
| 882 | } | ||||||||||||||||||||||||||||
| 883 | 21 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 884 | 21 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 885 | 21 | ▶ | if (pack('H*', '14025919') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 886 | 0 | return q{font/x-libgrx}; | |||||||||||||||||||||||||||
| 887 | } | ||||||||||||||||||||||||||||
| 888 | } | ||||||||||||||||||||||||||||
| 889 | 21 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 890 | 21 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 891 | 21 | ▶ | if (pack('H*', 'ff464f4e') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 892 | 0 | return q{font/x-dos}; | |||||||||||||||||||||||||||
| 893 | } | ||||||||||||||||||||||||||||
| 894 | } | ||||||||||||||||||||||||||||
| 895 | 21 | ▶ | if (length $data > 7) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 896 | 21 | $substr = substr($data, 7, 4); | |||||||||||||||||||||||||||
| 897 | 21 | ▶ | if (pack('H*', '00454741') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 898 | 0 | return q{font/x-dos}; | |||||||||||||||||||||||||||
| 899 | } | ||||||||||||||||||||||||||||
| 900 | } | ||||||||||||||||||||||||||||
| 901 | 21 | ▶ | if (length $data > 7) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 902 | 21 | $substr = substr($data, 7, 4); | |||||||||||||||||||||||||||
| 903 | 21 | ▶ | if (pack('H*', '00564944') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 904 | 0 | return q{font/x-dos}; | |||||||||||||||||||||||||||
| 905 | } | ||||||||||||||||||||||||||||
| 906 | } | ||||||||||||||||||||||||||||
| 907 | 21 | ▶ | if (length $data > 4098) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 908 | 6 | $substr = substr($data, 4098, 1024); | |||||||||||||||||||||||||||
| 909 | 6 | ▶ | if (defined $substr && $substr =~ m[^DOSFONT]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $substr and $substr =~ /^DOSFONT/
MC/DC0%0/2
defined $substr and $substr =~ /^DOSFONT/
defined $substr
$substr =~ /^DOSFONT/
Truth table33%1/3
A and B
A= defined $substrB= $substr =~ /^DOSFONT/
| |||||||||||||||||||||||||||||
| 910 | 0 | return q{font/x-dos}; | |||||||||||||||||||||||||||
| 911 | } | ||||||||||||||||||||||||||||
| 912 | } | ||||||||||||||||||||||||||||
| 913 | 21 | ▶ | if ($data =~ m[^\<MakerFile]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 914 | 0 | return q{application/x-framemaker}; | |||||||||||||||||||||||||||
| 915 | } | ||||||||||||||||||||||||||||
| 916 | 21 | ▶ | if ($data =~ m[^\<MIFFile]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 917 | 0 | return q{application/x-framemaker}; | |||||||||||||||||||||||||||
| 918 | } | ||||||||||||||||||||||||||||
| 919 | 21 | ▶ | if ($data =~ m[^\<MakerDictionary]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 920 | 0 | return q{application/x-framemaker}; | |||||||||||||||||||||||||||
| 921 | } | ||||||||||||||||||||||||||||
| 922 | 21 | ▶ | if ($data =~ m[^\<MakerScreenFont]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 923 | 0 | return q{font/x-framemaker}; | |||||||||||||||||||||||||||
| 924 | } | ||||||||||||||||||||||||||||
| 925 | 21 | ▶ | if ($data =~ m[^\<MML]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 926 | 0 | return q{application/x-framemaker}; | |||||||||||||||||||||||||||
| 927 | } | ||||||||||||||||||||||||||||
| 928 | 21 | ▶ | if ($data =~ m[^\<BookFile]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 929 | 0 | return q{application/x-framemaker}; | |||||||||||||||||||||||||||
| 930 | } | ||||||||||||||||||||||||||||
| 931 | 21 | ▶ | if ($data =~ m[^\<Maker]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 932 | 0 | return q{application/x-framemaker}; | |||||||||||||||||||||||||||
| 933 | } | ||||||||||||||||||||||||||||
| 934 | 21 | ▶ | if (length $data > 7) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 935 | 21 | $substr = substr($data, 7, 1024); | |||||||||||||||||||||||||||
| 936 | 21 | ▶ | if (defined $substr && $substr =~ m[^\357\020\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $substr and $substr =~ /^\357\020\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0/
MC/DC0%0/2
defined $substr and $substr =~ /^\357\020\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0/
defined $substr
$substr =~ /^\357\020\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0/
Truth table33%1/3
A and B
A= defined $substrB= $substr =~ /^\357\020\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0/
| |||||||||||||||||||||||||||||
| 937 | 0 | return q{application/core}; | |||||||||||||||||||||||||||
| 938 | } | ||||||||||||||||||||||||||||
| 939 | } | ||||||||||||||||||||||||||||
| 940 | 21 | ▶ | if ($data =~ m[^GIMP\ Gradient]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 941 | 0 | return q{application/x-gimp-gradient}; | |||||||||||||||||||||||||||
| 942 | } | ||||||||||||||||||||||||||||
| 943 | 21 | ▶ | if ($data =~ m[^gimp\ xcf]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 944 | 0 | return q{application/x-gimp-image}; | |||||||||||||||||||||||||||
| 945 | } | ||||||||||||||||||||||||||||
| 946 | 21 | ▶ | if (length $data > 20) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 947 | 21 | $substr = substr($data, 20, 1024); | |||||||||||||||||||||||||||
| 948 | 21 | ▶ | if (defined $substr && $substr =~ m[^GPAT]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $substr and $substr =~ /^GPAT/
MC/DC0%0/2
defined $substr and $substr =~ /^GPAT/
defined $substr
$substr =~ /^GPAT/
Truth table33%1/3
A and B
A= defined $substrB= $substr =~ /^GPAT/
| |||||||||||||||||||||||||||||
| 949 | 0 | return q{application/x-gimp-pattern}; | |||||||||||||||||||||||||||
| 950 | } | ||||||||||||||||||||||||||||
| 951 | } | ||||||||||||||||||||||||||||
| 952 | 21 | ▶ | if (length $data > 20) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 953 | 21 | $substr = substr($data, 20, 1024); | |||||||||||||||||||||||||||
| 954 | 21 | ▶ | if (defined $substr && $substr =~ m[^GIMP]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $substr and $substr =~ /^GIMP/
MC/DC0%0/2
defined $substr and $substr =~ /^GIMP/
defined $substr
$substr =~ /^GIMP/
Truth table33%1/3
A and B
A= defined $substrB= $substr =~ /^GIMP/
| |||||||||||||||||||||||||||||
| 955 | 0 | return q{application/x-gimp-brush}; | |||||||||||||||||||||||||||
| 956 | } | ||||||||||||||||||||||||||||
| 957 | } | ||||||||||||||||||||||||||||
| 958 | 21 | ▶ | if ($data =~ m[^\336\224\225]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 959 | 0 | return q{application/x-locale}; | |||||||||||||||||||||||||||
| 960 | } | ||||||||||||||||||||||||||||
| 961 | 21 | ▶ | if ($data =~ m[^\2254\22\336]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 962 | 0 | return q{application/x-locale}; | |||||||||||||||||||||||||||
| 963 | } | ||||||||||||||||||||||||||||
| 964 | 21 | ▶ | if ($data =~ m[^\000\001\000\000\000]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 965 | 0 | return q{font/ttf}; | |||||||||||||||||||||||||||
| 966 | } | ||||||||||||||||||||||||||||
| 967 | 21 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 968 | 21 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 969 | 21 | ▶ | if (pack('H*', '02100106') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 970 | 0 | return q{application/x-object-file}; | |||||||||||||||||||||||||||
| 971 | } | ||||||||||||||||||||||||||||
| 972 | } | ||||||||||||||||||||||||||||
| 973 | 21 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 974 | 21 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 975 | 21 | ▶ | if (pack('H*', '02100107') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 976 | 0 | return q{application/x-executable-file}; | |||||||||||||||||||||||||||
| 977 | } | ||||||||||||||||||||||||||||
| 978 | } | ||||||||||||||||||||||||||||
| 979 | 21 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 980 | 21 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 981 | 21 | ▶ | if (pack('H*', '02100108') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 982 | 0 | return q{application/x-executable-file}; | |||||||||||||||||||||||||||
| 983 | } | ||||||||||||||||||||||||||||
| 984 | } | ||||||||||||||||||||||||||||
| 985 | 21 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 986 | 21 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 987 | 21 | ▶ | if (pack('H*', '0210010b') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 988 | 0 | return q{application/x-executable-file}; | |||||||||||||||||||||||||||
| 989 | } | ||||||||||||||||||||||||||||
| 990 | } | ||||||||||||||||||||||||||||
| 991 | 21 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 992 | 21 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 993 | 21 | ▶ | if (pack('H*', '0210010e') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 994 | 0 | return q{application/x-library-file}; | |||||||||||||||||||||||||||
| 995 | } | ||||||||||||||||||||||||||||
| 996 | } | ||||||||||||||||||||||||||||
| 997 | 21 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 998 | 21 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 999 | 21 | ▶ | if (pack('H*', '0210010d') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1000 | 0 | return q{application/x-library-file}; | |||||||||||||||||||||||||||
| 1001 | } | ||||||||||||||||||||||||||||
| 1002 | } | ||||||||||||||||||||||||||||
| 1003 | 21 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1004 | 21 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 1005 | 21 | ▶ | if (pack('H*', '02140106') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1006 | 0 | return q{application/x-object-file}; | |||||||||||||||||||||||||||
| 1007 | } | ||||||||||||||||||||||||||||
| 1008 | } | ||||||||||||||||||||||||||||
| 1009 | 21 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1010 | 21 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 1011 | 21 | ▶ | if (pack('H*', '02140107') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1012 | 0 | return q{application/x-executable-file}; | |||||||||||||||||||||||||||
| 1013 | } | ||||||||||||||||||||||||||||
| 1014 | } | ||||||||||||||||||||||||||||
| 1015 | 21 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1016 | 21 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 1017 | 21 | ▶ | if (pack('H*', '02140108') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1018 | 0 | return q{application/x-executable-file}; | |||||||||||||||||||||||||||
| 1019 | } | ||||||||||||||||||||||||||||
| 1020 | } | ||||||||||||||||||||||||||||
| 1021 | 21 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1022 | 21 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 1023 | 21 | ▶ | if (pack('H*', '0214010b') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1024 | 0 | return q{application/x-executable-file}; | |||||||||||||||||||||||||||
| 1025 | } | ||||||||||||||||||||||||||||
| 1026 | } | ||||||||||||||||||||||||||||
| 1027 | 21 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1028 | 21 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 1029 | 21 | ▶ | if (pack('H*', '0214010e') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1030 | 0 | return q{application/x-library-file}; | |||||||||||||||||||||||||||
| 1031 | } | ||||||||||||||||||||||||||||
| 1032 | } | ||||||||||||||||||||||||||||
| 1033 | 21 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1034 | 21 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 1035 | 21 | ▶ | if (pack('H*', '0214010d') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1036 | 0 | return q{application/x-object-file}; | |||||||||||||||||||||||||||
| 1037 | } | ||||||||||||||||||||||||||||
| 1038 | } | ||||||||||||||||||||||||||||
| 1039 | 21 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1040 | 21 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 1041 | 21 | ▶ | if (pack('H*', '020b0106') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1042 | 0 | return q{application/x-object-file}; | |||||||||||||||||||||||||||
| 1043 | } | ||||||||||||||||||||||||||||
| 1044 | } | ||||||||||||||||||||||||||||
| 1045 | 21 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1046 | 21 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 1047 | 21 | ▶ | if (pack('H*', '020b0107') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1048 | 0 | return q{application/x-executable-file}; | |||||||||||||||||||||||||||
| 1049 | } | ||||||||||||||||||||||||||||
| 1050 | } | ||||||||||||||||||||||||||||
| 1051 | 21 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1052 | 21 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 1053 | 21 | ▶ | if (pack('H*', '020b0108') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1054 | 0 | return q{application/x-executable-file}; | |||||||||||||||||||||||||||
| 1055 | } | ||||||||||||||||||||||||||||
| 1056 | } | ||||||||||||||||||||||||||||
| 1057 | 21 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1058 | 21 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 1059 | 21 | ▶ | if (pack('H*', '020b010b') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1060 | 0 | return q{application/x-executable-file}; | |||||||||||||||||||||||||||
| 1061 | } | ||||||||||||||||||||||||||||
| 1062 | } | ||||||||||||||||||||||||||||
| 1063 | 21 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1064 | 21 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 1065 | 21 | ▶ | if (pack('H*', '020b010e') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1066 | 0 | return q{application/x-library-file}; | |||||||||||||||||||||||||||
| 1067 | } | ||||||||||||||||||||||||||||
| 1068 | } | ||||||||||||||||||||||||||||
| 1069 | 21 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1070 | 21 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 1071 | 21 | ▶ | if (pack('H*', '020b010d') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1072 | 0 | return q{application/x-library-file}; | |||||||||||||||||||||||||||
| 1073 | } | ||||||||||||||||||||||||||||
| 1074 | } | ||||||||||||||||||||||||||||
| 1075 | 21 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1076 | 21 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 1077 | 21 | ▶ | if (pack('H*', '213c6172') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1078 | 0 | return q{application/x-ar}; | |||||||||||||||||||||||||||
| 1079 | } | ||||||||||||||||||||||||||||
| 1080 | } | ||||||||||||||||||||||||||||
| 1081 | 21 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1082 | 21 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 1083 | 21 | ▶ | if (pack('H*', '020c0108') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1084 | 0 | return q{application/x-executable-file}; | |||||||||||||||||||||||||||
| 1085 | } | ||||||||||||||||||||||||||||
| 1086 | } | ||||||||||||||||||||||||||||
| 1087 | 21 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1088 | 21 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 1089 | 21 | ▶ | if (pack('H*', '020c0107') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1090 | 0 | return q{application/x-executable-file}; | |||||||||||||||||||||||||||
| 1091 | } | ||||||||||||||||||||||||||||
| 1092 | } | ||||||||||||||||||||||||||||
| 1093 | 21 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1094 | 21 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 1095 | 21 | ▶ | if (pack('H*', '020c010b') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1096 | 0 | return q{application/x-executable-file}; | |||||||||||||||||||||||||||
| 1097 | } | ||||||||||||||||||||||||||||
| 1098 | } | ||||||||||||||||||||||||||||
| 1099 | 21 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1100 | 21 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 1101 | 21 | ▶ | if (pack('H*', '020c0106') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1102 | 0 | return q{application/x-executable-file}; | |||||||||||||||||||||||||||
| 1103 | } | ||||||||||||||||||||||||||||
| 1104 | } | ||||||||||||||||||||||||||||
| 1105 | 21 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1106 | 21 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 1107 | 21 | ▶ | if (pack('H*', '020a0108') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1108 | 0 | return q{application/x-executable-file}; | |||||||||||||||||||||||||||
| 1109 | } | ||||||||||||||||||||||||||||
| 1110 | } | ||||||||||||||||||||||||||||
| 1111 | 21 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1112 | 21 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 1113 | 21 | ▶ | if (pack('H*', '020a0107') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1114 | 0 | return q{application/x-executable-file}; | |||||||||||||||||||||||||||
| 1115 | } | ||||||||||||||||||||||||||||
| 1116 | } | ||||||||||||||||||||||||||||
| 1117 | 21 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1118 | 21 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 1119 | 21 | ▶ | if (pack('H*', '020c010e') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1120 | 0 | return q{application/x-library-file}; | |||||||||||||||||||||||||||
| 1121 | } | ||||||||||||||||||||||||||||
| 1122 | } | ||||||||||||||||||||||||||||
| 1123 | 21 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1124 | 21 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 1125 | 21 | ▶ | if (pack('H*', '020c010d') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1126 | 0 | return q{application/x-library-file}; | |||||||||||||||||||||||||||
| 1127 | } | ||||||||||||||||||||||||||||
| 1128 | } | ||||||||||||||||||||||||||||
| 1129 | 21 | ▶ | if ($data =~ m[^Bitmapfile]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1130 | 0 | return q{image/unknown}; | |||||||||||||||||||||||||||
| 1131 | } | ||||||||||||||||||||||||||||
| 1132 | 21 | ▶ | if ($data =~ m[^IMGfile]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1133 | 0 | return q{CIS image/unknown}; | |||||||||||||||||||||||||||
| 1134 | } | ||||||||||||||||||||||||||||
| 1135 | 21 | ▶ | if ($data =~ m[^msgcat01]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1136 | 0 | return q{application/x-locale}; | |||||||||||||||||||||||||||
| 1137 | } | ||||||||||||||||||||||||||||
| 1138 | 21 | ▶ | if ($data =~ m[^HPHP48\-]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1139 | 0 | return q{application/unknown}; | |||||||||||||||||||||||||||
| 1140 | } | ||||||||||||||||||||||||||||
| 1141 | 21 | ▶ | if ($data =~ m[^\%\%HP\:]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1142 | 0 | return q{text/x-unknown}; | |||||||||||||||||||||||||||
| 1143 | } | ||||||||||||||||||||||||||||
| 1144 | 21 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1145 | 21 | $substr = substr($data, 0, 2); | |||||||||||||||||||||||||||
| 1146 | 21 | ▶ | if (pack('H*', '01df') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1147 | 0 | return q{application/executable}; | |||||||||||||||||||||||||||
| 1148 | } | ||||||||||||||||||||||||||||
| 1149 | } | ||||||||||||||||||||||||||||
| 1150 | 21 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1151 | 21 | $substr = substr($data, 0, 2); | |||||||||||||||||||||||||||
| 1152 | 21 | ▶ | if (pack('H*', '0104') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1153 | 0 | return q{application/x-shared-library}; | |||||||||||||||||||||||||||
| 1154 | } | ||||||||||||||||||||||||||||
| 1155 | } | ||||||||||||||||||||||||||||
| 1156 | 21 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1157 | 21 | $substr = substr($data, 0, 2); | |||||||||||||||||||||||||||
| 1158 | 21 | ▶ | if (pack('H*', '0105') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1159 | 0 | return q{application/data}; | |||||||||||||||||||||||||||
| 1160 | } | ||||||||||||||||||||||||||||
| 1161 | } | ||||||||||||||||||||||||||||
| 1162 | 21 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1163 | 21 | $substr = substr($data, 0, 2); | |||||||||||||||||||||||||||
| 1164 | 21 | ▶ | if (pack('H*', 'fe04') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1165 | 0 | return q{application/data}; | |||||||||||||||||||||||||||
| 1166 | } | ||||||||||||||||||||||||||||
| 1167 | } | ||||||||||||||||||||||||||||
| 1168 | 21 | ▶ | if ($data =~ m[^0xabcdef]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1169 | 0 | return q{application/data}; | |||||||||||||||||||||||||||
| 1170 | } | ||||||||||||||||||||||||||||
| 1171 | 21 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1172 | 21 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 1173 | 21 | ▶ | if (pack('H*', '000001f9') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1174 | 0 | return q{application/data}; | |||||||||||||||||||||||||||
| 1175 | } | ||||||||||||||||||||||||||||
| 1176 | } | ||||||||||||||||||||||||||||
| 1177 | 21 | ▶ | if ($data =~ m[^\<aiaff\>]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1178 | 0 | return q{application/x-archive}; | |||||||||||||||||||||||||||
| 1179 | } | ||||||||||||||||||||||||||||
| 1180 | 21 | ▶ | if ($data =~ m[^FORM]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1181 | 0 | return q{application/data}; | |||||||||||||||||||||||||||
| 1182 | } | ||||||||||||||||||||||||||||
| 1183 | 21 | ▶ | if ($data =~ m[^P1]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1184 | 0 | return q{image/x-portable-bitmap}; | |||||||||||||||||||||||||||
| 1185 | } | ||||||||||||||||||||||||||||
| 1186 | 21 | ▶ | if ($data =~ m[^P2]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1187 | 0 | return q{image/x-portable-graymap}; | |||||||||||||||||||||||||||
| 1188 | } | ||||||||||||||||||||||||||||
| 1189 | 21 | ▶ | if ($data =~ m[^P3]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1190 | 0 | return q{image/x-portable-pixmap}; | |||||||||||||||||||||||||||
| 1191 | } | ||||||||||||||||||||||||||||
| 1192 | 21 | ▶ | if ($data =~ m[^P4]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1193 | 0 | return q{image/x-portable-bitmap}; | |||||||||||||||||||||||||||
| 1194 | } | ||||||||||||||||||||||||||||
| 1195 | 21 | ▶ | if ($data =~ m[^P5]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1196 | 0 | return q{image/x-portable-graymap}; | |||||||||||||||||||||||||||
| 1197 | } | ||||||||||||||||||||||||||||
| 1198 | 21 | ▶ | if ($data =~ m[^P6]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1199 | 0 | return q{image/x-portable-pixmap}; | |||||||||||||||||||||||||||
| 1200 | } | ||||||||||||||||||||||||||||
| 1201 | 21 | ▶ | if ($data =~ m[^IIN1]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1202 | 0 | return q{image/tiff}; | |||||||||||||||||||||||||||
| 1203 | } | ||||||||||||||||||||||||||||
| 1204 | 21 | ▶ | if ($data =~ m[^MM\x00\x2a]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1205 | 0 | return q{image/tiff}; | |||||||||||||||||||||||||||
| 1206 | } | ||||||||||||||||||||||||||||
| 1207 | 21 | ▶ | if ($data =~ m[^II\x2a\x00]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1208 | 3 | return q{image/tiff}; | |||||||||||||||||||||||||||
| 1209 | } | ||||||||||||||||||||||||||||
| 1210 | 18 | ▶ | if ($data =~ m[^\x89PNG]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1211 | 3 | return q{image/x-png}; | |||||||||||||||||||||||||||
| 1212 | } | ||||||||||||||||||||||||||||
| 1213 | 15 | ▶ | if (length $data > 1) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1214 | 15 | $substr = substr($data, 1, 1024); | |||||||||||||||||||||||||||
| 1215 | 15 | ▶ | if (defined $substr && $substr =~ m[^PNG]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $substr and $substr =~ /^PNG/
MC/DC0%0/2
defined $substr and $substr =~ /^PNG/
defined $substr
$substr =~ /^PNG/
Truth table33%1/3
A and B
A= defined $substrB= $substr =~ /^PNG/
| |||||||||||||||||||||||||||||
| 1216 | 0 | return q{image/x-png}; | |||||||||||||||||||||||||||
| 1217 | } | ||||||||||||||||||||||||||||
| 1218 | } | ||||||||||||||||||||||||||||
| 1219 | 15 | ▶ | if ($data =~ m[^GIF8]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1220 | 3 | return q{image/gif}; | |||||||||||||||||||||||||||
| 1221 | } | ||||||||||||||||||||||||||||
| 1222 | 12 | ▶ | if ($data =~ m[^\361\0\100\273]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1223 | 0 | return q{image/x-cmu-raster}; | |||||||||||||||||||||||||||
| 1224 | } | ||||||||||||||||||||||||||||
| 1225 | 12 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1226 | 12 | $substr = substr($data, 0, 2); | |||||||||||||||||||||||||||
| 1227 | 12 | ▶ | if (pack('H*', 'ffd8') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1228 | 3 | return q{image/jpeg}; | |||||||||||||||||||||||||||
| 1229 | } | ||||||||||||||||||||||||||||
| 1230 | } | ||||||||||||||||||||||||||||
| 1231 | 9 | ▶ | if ($data =~ m[^hsi1]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1232 | 0 | return q{image/x-jpeg-proprietary}; | |||||||||||||||||||||||||||
| 1233 | } | ||||||||||||||||||||||||||||
| 1234 | 9 | ▶ | if ($data =~ m[^BM]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1235 | 3 | return q{image/x-bmp}; | |||||||||||||||||||||||||||
| 1236 | } | ||||||||||||||||||||||||||||
| 1237 | 6 | ▶ | if ($data =~ m[^IC]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1238 | 0 | return q{image/x-ico}; | |||||||||||||||||||||||||||
| 1239 | } | ||||||||||||||||||||||||||||
| 1240 | 6 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1241 | 6 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 1242 | 6 | ▶ | if (pack('H*', '59a66a95') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1243 | 0 | return q{x/x-image-sun-raster}; | |||||||||||||||||||||||||||
| 1244 | } | ||||||||||||||||||||||||||||
| 1245 | } | ||||||||||||||||||||||||||||
| 1246 | 6 | ▶ | if (length $data > 2048) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1247 | 3 | $substr = substr($data, 2048, 1024); | |||||||||||||||||||||||||||
| 1248 | 3 | ▶ | if (defined $substr && $substr =~ m[^PCD_IPI]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $substr and $substr =~ /^PCD_IPI/
MC/DC0%0/2
defined $substr and $substr =~ /^PCD_IPI/
defined $substr
$substr =~ /^PCD_IPI/
Truth table33%1/3
A and B
A= defined $substrB= $substr =~ /^PCD_IPI/
| |||||||||||||||||||||||||||||
| 1249 | 0 | return q{x/x-photo-cd-pack-file}; | |||||||||||||||||||||||||||
| 1250 | } | ||||||||||||||||||||||||||||
| 1251 | } | ||||||||||||||||||||||||||||
| 1252 | 6 | ▶ | if ($data =~ m[^PCD_OPA]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1253 | 0 | return q{x/x-photo-cd-overfiew-file}; | |||||||||||||||||||||||||||
| 1254 | } | ||||||||||||||||||||||||||||
| 1255 | 6 | ▶ | if ($data =~ m[^\007\001\000]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1256 | 0 | return q{Linux/i386 object file}; | |||||||||||||||||||||||||||
| 1257 | } | ||||||||||||||||||||||||||||
| 1258 | 6 | ▶ | if (length $data > 4086) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1259 | 0 | $substr = substr($data, 4086, 1024); | |||||||||||||||||||||||||||
| 1260 | 0 | ▶ | if (defined $substr && $substr =~ m[^SWAP\-SPACE]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
defined $substr and $substr =~ /^SWAP\-SPACE/
MC/DC0%0/2
defined $substr and $substr =~ /^SWAP\-SPACE/
defined $substr
$substr =~ /^SWAP\-SPACE/
Truth table0%0/3
A and B
A= defined $substrB= $substr =~ /^SWAP\-SPACE/
| |||||||||||||||||||||||||||||
| 1261 | 0 | return q{Linux/i386 swap file}; | |||||||||||||||||||||||||||
| 1262 | } | ||||||||||||||||||||||||||||
| 1263 | } | ||||||||||||||||||||||||||||
| 1264 | 6 | ▶ | if ($data =~ m[^\;\;]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1265 | 0 | return q{Lisp/Scheme program text}; | |||||||||||||||||||||||||||
| 1266 | } | ||||||||||||||||||||||||||||
| 1267 | 6 | ▶ | if ($data =~ m[^FFIL]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1268 | 0 | return q{font/ttf}; | |||||||||||||||||||||||||||
| 1269 | } | ||||||||||||||||||||||||||||
| 1270 | 6 | ▶ | if (length $data > 65) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1271 | 6 | $substr = substr($data, 65, 1024); | |||||||||||||||||||||||||||
| 1272 | 6 | ▶ | if (defined $substr && $substr =~ m[^FFIL]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $substr and $substr =~ /^FFIL/
MC/DC0%0/2
defined $substr and $substr =~ /^FFIL/
defined $substr
$substr =~ /^FFIL/
Truth table33%1/3
A and B
A= defined $substrB= $substr =~ /^FFIL/
| |||||||||||||||||||||||||||||
| 1273 | 0 | return q{font/ttf}; | |||||||||||||||||||||||||||
| 1274 | } | ||||||||||||||||||||||||||||
| 1275 | } | ||||||||||||||||||||||||||||
| 1276 | 6 | ▶ | if ($data =~ m[^LWFN]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1277 | 0 | return q{font/type1}; | |||||||||||||||||||||||||||
| 1278 | } | ||||||||||||||||||||||||||||
| 1279 | 6 | ▶ | if (length $data > 65) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1280 | 6 | $substr = substr($data, 65, 1024); | |||||||||||||||||||||||||||
| 1281 | 6 | ▶ | if (defined $substr && $substr =~ m[^LWFN]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $substr and $substr =~ /^LWFN/
MC/DC0%0/2
defined $substr and $substr =~ /^LWFN/
defined $substr
$substr =~ /^LWFN/
Truth table33%1/3
A and B
A= defined $substrB= $substr =~ /^LWFN/
| |||||||||||||||||||||||||||||
| 1282 | 0 | return q{font/type1}; | |||||||||||||||||||||||||||
| 1283 | } | ||||||||||||||||||||||||||||
| 1284 | } | ||||||||||||||||||||||||||||
| 1285 | 6 | ▶ | if ($data =~ m[^Return\-Path\:]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1286 | 0 | return q{message/rfc822}; | |||||||||||||||||||||||||||
| 1287 | } | ||||||||||||||||||||||||||||
| 1288 | 6 | ▶ | if ($data =~ m[^Path\:]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1289 | 0 | return q{message/news}; | |||||||||||||||||||||||||||
| 1290 | } | ||||||||||||||||||||||||||||
| 1291 | 6 | ▶ | if ($data =~ m[^Xref\:]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1292 | 0 | return q{message/news}; | |||||||||||||||||||||||||||
| 1293 | } | ||||||||||||||||||||||||||||
| 1294 | 6 | ▶ | if ($data =~ m[^From\:]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1295 | 0 | return q{message/rfc822}; | |||||||||||||||||||||||||||
| 1296 | } | ||||||||||||||||||||||||||||
| 1297 | 6 | ▶ | if ($data =~ m[^Article]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1298 | 0 | return q{message/news}; | |||||||||||||||||||||||||||
| 1299 | } | ||||||||||||||||||||||||||||
| 1300 | 6 | ▶ | if ($data =~ m[^BABYL]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1301 | 0 | return q{message/x-gnu-rmail}; | |||||||||||||||||||||||||||
| 1302 | } | ||||||||||||||||||||||||||||
| 1303 | 6 | ▶ | if ($data =~ m[^Received\:]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1304 | 0 | return q{message/rfc822}; | |||||||||||||||||||||||||||
| 1305 | } | ||||||||||||||||||||||||||||
| 1306 | 6 | ▶ | if ($data =~ m[^MZ]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1307 | 0 | return q{application/x-ms-dos-executable}; | |||||||||||||||||||||||||||
| 1308 | } | ||||||||||||||||||||||||||||
| 1309 | 6 | ▶ | if (length $data > 2080) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1310 | 3 | $substr = substr($data, 2080, 1024); | |||||||||||||||||||||||||||
| 1311 | 3 | ▶ | if (defined $substr && $substr =~ m[^Microsoft\ Word\ 6\.0\ Document]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $substr and $substr =~ /^Microsoft\ Word\ 6\.0\ Document/
MC/DC0%0/2
defined $substr and $substr =~ /^Microsoft\ Word\ 6\.0\ Document/
defined $substr
$substr =~ /^Microsoft\ Word\ 6\.0\ Document/
Truth table33%1/3
A and B
A= defined $substrB= $substr =~ /^Microsoft\ Word\ 6\.0\ Document/
| |||||||||||||||||||||||||||||
| 1312 | 0 | return q{text/vnd.ms-word}; | |||||||||||||||||||||||||||
| 1313 | } | ||||||||||||||||||||||||||||
| 1314 | } | ||||||||||||||||||||||||||||
| 1315 | 6 | ▶ | if (length $data > 2080) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1316 | 3 | $substr = substr($data, 2080, 1024); | |||||||||||||||||||||||||||
| 1317 | 3 | ▶ | if (defined $substr && $substr =~ m[^Documento\ Microsoft\ Word\ 6]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $substr and $substr =~ /^Documento\ Microsoft\ Word\ 6/
MC/DC0%0/2
defined $substr and $substr =~ /^Documento\ Microsoft\ Word\ 6/
defined $substr
$substr =~ /^Documento\ Microsoft\ Word\ 6/
Truth table33%1/3
A and B
A= defined $substrB= $substr =~ /^Documento\ Microsoft\ Word\ 6/
| |||||||||||||||||||||||||||||
| 1318 | 0 | return q{text/vnd.ms-word}; | |||||||||||||||||||||||||||
| 1319 | } | ||||||||||||||||||||||||||||
| 1320 | } | ||||||||||||||||||||||||||||
| 1321 | 6 | ▶ | if (length $data > 2112) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1322 | 3 | $substr = substr($data, 2112, 1024); | |||||||||||||||||||||||||||
| 1323 | 3 | ▶ | if (defined $substr && $substr =~ m[^MSWordDoc]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $substr and $substr =~ /^MSWordDoc/
MC/DC0%0/2
defined $substr and $substr =~ /^MSWordDoc/
defined $substr
$substr =~ /^MSWordDoc/
Truth table33%1/3
A and B
A= defined $substrB= $substr =~ /^MSWordDoc/
| |||||||||||||||||||||||||||||
| 1324 | 0 | return q{text/vnd.ms-word}; | |||||||||||||||||||||||||||
| 1325 | } | ||||||||||||||||||||||||||||
| 1326 | } | ||||||||||||||||||||||||||||
| 1327 | 6 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1328 | 6 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 1329 | 6 | ▶ | if (pack('H*', '31be0000') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1330 | 0 | return q{text/vnd.ms-word}; | |||||||||||||||||||||||||||
| 1331 | } | ||||||||||||||||||||||||||||
| 1332 | } | ||||||||||||||||||||||||||||
| 1333 | 6 | ▶ | if ($data =~ m[^PO\^Q\`]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1334 | 0 | return q{text/vnd.ms-word}; | |||||||||||||||||||||||||||
| 1335 | } | ||||||||||||||||||||||||||||
| 1336 | 6 | ▶ | if (length $data > 2080) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1337 | 3 | $substr = substr($data, 2080, 1024); | |||||||||||||||||||||||||||
| 1338 | 3 | ▶ | if (defined $substr && $substr =~ m[^Microsoft\ Excel\ 5\.0\ Worksheet]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $substr and $substr =~ /^Microsoft\ Excel\ 5\.0\ Worksheet/
MC/DC0%0/2
defined $substr and $substr =~ /^Microsoft\ Excel\ 5\.0\ Worksheet/
defined $substr
$substr =~ /^Microsoft\ Excel\ 5\.0\ Worksheet/
Truth table33%1/3
A and B
A= defined $substrB= $substr =~ /^Microsoft\ Excel\ 5\.0\ Worksheet/
| |||||||||||||||||||||||||||||
| 1339 | 0 | return q{application/vnd.ms-excel}; | |||||||||||||||||||||||||||
| 1340 | } | ||||||||||||||||||||||||||||
| 1341 | } | ||||||||||||||||||||||||||||
| 1342 | 6 | ▶ | if (length $data > 2114) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1343 | 3 | $substr = substr($data, 2114, 1024); | |||||||||||||||||||||||||||
| 1344 | 3 | ▶ | if (defined $substr && $substr =~ m[^Biff5]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $substr and $substr =~ /^Biff5/
MC/DC0%0/2
defined $substr and $substr =~ /^Biff5/
defined $substr
$substr =~ /^Biff5/
Truth table33%1/3
A and B
A= defined $substrB= $substr =~ /^Biff5/
| |||||||||||||||||||||||||||||
| 1345 | 0 | return q{application/vnd.ms-excel}; | |||||||||||||||||||||||||||
| 1346 | } | ||||||||||||||||||||||||||||
| 1347 | } | ||||||||||||||||||||||||||||
| 1348 | 6 | ▶ | if ($data =~ m[^\x31\xbe\x00\x00]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1349 | 0 | return q{application/msword}; | |||||||||||||||||||||||||||
| 1350 | } | ||||||||||||||||||||||||||||
| 1351 | 6 | ▶ | if ($data =~ m[^PO\^Q\`]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1352 | 0 | return q{application/msword}; | |||||||||||||||||||||||||||
| 1353 | } | ||||||||||||||||||||||||||||
| 1354 | 6 | ▶ | if (length $data > 1) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1355 | 6 | $substr = substr($data, 1, 1024); | |||||||||||||||||||||||||||
| 1356 | 6 | ▶ | if (defined $substr && $substr =~ m[^WPC]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $substr and $substr =~ /^WPC/
MC/DC0%0/2
defined $substr and $substr =~ /^WPC/
defined $substr
$substr =~ /^WPC/
Truth table33%1/3
A and B
A= defined $substrB= $substr =~ /^WPC/
| |||||||||||||||||||||||||||||
| 1357 | 0 | return q{text/vnd.wordperfect}; | |||||||||||||||||||||||||||
| 1358 | } | ||||||||||||||||||||||||||||
| 1359 | } | ||||||||||||||||||||||||||||
| 1360 | 6 | ▶ | if ($data =~ m[^StartFontMetrics]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1361 | 0 | return q{font/x-sunos-news}; | |||||||||||||||||||||||||||
| 1362 | } | ||||||||||||||||||||||||||||
| 1363 | 6 | ▶ | if ($data =~ m[^StartFont]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1364 | 0 | return q{font/x-sunos-news}; | |||||||||||||||||||||||||||
| 1365 | } | ||||||||||||||||||||||||||||
| 1366 | 6 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1367 | 6 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 1368 | 6 | ▶ | if (pack('H*', '137A2944') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1369 | 0 | return q{font/x-sunos-news}; | |||||||||||||||||||||||||||
| 1370 | } | ||||||||||||||||||||||||||||
| 1371 | } | ||||||||||||||||||||||||||||
| 1372 | 6 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1373 | 6 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 1374 | 6 | ▶ | if (pack('H*', '137A2947') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1375 | 0 | return q{font/x-sunos-news}; | |||||||||||||||||||||||||||
| 1376 | } | ||||||||||||||||||||||||||||
| 1377 | } | ||||||||||||||||||||||||||||
| 1378 | 6 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1379 | 6 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 1380 | 6 | ▶ | if (pack('H*', '137A2950') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1381 | 0 | return q{font/x-sunos-news}; | |||||||||||||||||||||||||||
| 1382 | } | ||||||||||||||||||||||||||||
| 1383 | } | ||||||||||||||||||||||||||||
| 1384 | 6 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1385 | 6 | $substr = substr($data, 0, 4); | |||||||||||||||||||||||||||
| 1386 | 6 | ▶ | if (pack('H*', '137A2951') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1387 | 0 | return q{font/x-sunos-news}; | |||||||||||||||||||||||||||
| 1388 | } | ||||||||||||||||||||||||||||
| 1389 | } | ||||||||||||||||||||||||||||
| 1390 | 6 | ▶ | if (length $data > 8) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1391 | 6 | $substr = substr($data, 8, 4); | |||||||||||||||||||||||||||
| 1392 | 6 | ▶ | if (pack('H*', '137A2B45') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1393 | 0 | return q{font/x-sunos-news}; | |||||||||||||||||||||||||||
| 1394 | } | ||||||||||||||||||||||||||||
| 1395 | } | ||||||||||||||||||||||||||||
| 1396 | 6 | ▶ | if (length $data > 8) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1397 | 6 | $substr = substr($data, 8, 4); | |||||||||||||||||||||||||||
| 1398 | 6 | ▶ | if (pack('H*', '137A2B48') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1399 | 0 | return q{font/x-sunos-news}; | |||||||||||||||||||||||||||
| 1400 | } | ||||||||||||||||||||||||||||
| 1401 | } | ||||||||||||||||||||||||||||
| 1402 | 6 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1403 | 6 | $substr = substr($data, 0, 2); | |||||||||||||||||||||||||||
| 1404 | 6 | ▶ | if (pack('H*', '87CD') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1405 | 0 | return q{OS9/6809 module:}; | |||||||||||||||||||||||||||
| 1406 | } | ||||||||||||||||||||||||||||
| 1407 | } | ||||||||||||||||||||||||||||
| 1408 | 6 | ▶ | if (length $data > 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1409 | 6 | $substr = substr($data, 0, 2); | |||||||||||||||||||||||||||
| 1410 | 6 | ▶ | if (pack('H*', '4AFC') eq $substr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1411 | 0 | return q{OS9/68K module:}; | |||||||||||||||||||||||||||
| 1412 | } | ||||||||||||||||||||||||||||
| 1413 | } | ||||||||||||||||||||||||||||
| 1414 | 6 | ▶ | if ($data =~ m[^\%PDF\-]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1415 | 3 | return q{application/pdf}; | |||||||||||||||||||||||||||
| 1416 | } | ||||||||||||||||||||||||||||
| 1417 | 3 | ▶ | if ($data =~ m[^\%\!]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1418 | 0 | return q{application/postscript}; | |||||||||||||||||||||||||||
| 1419 | } | ||||||||||||||||||||||||||||
| 1420 | 3 | ▶ | if ($data =~ m[^\004\%\!]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1421 | 0 | return q{application/postscript}; | |||||||||||||||||||||||||||
| 1422 | } | ||||||||||||||||||||||||||||
| 1423 | 3 | ▶ | if ($data =~ m[^\033E\033]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1424 | 0 | return q{image/x-pcl-hp}; | |||||||||||||||||||||||||||
| 1425 | } | ||||||||||||||||||||||||||||
| 1426 | 3 | ▶ | if ($data =~ m[^\<\!DOCTYPE\ HTML]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1427 | 3 | return q{text/html}; | |||||||||||||||||||||||||||
| 1428 | } | ||||||||||||||||||||||||||||
| 1429 | 0 | ▶ | if ($data =~ m[^\<\!doctype\ html]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1430 | 0 | return q{text/html}; | |||||||||||||||||||||||||||
| 1431 | } | ||||||||||||||||||||||||||||
| 1432 | 0 | ▶ | if ($data =~ m[^\<HEAD]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1433 | 0 | return q{text/html}; | |||||||||||||||||||||||||||
| 1434 | } | ||||||||||||||||||||||||||||
| 1435 | 0 | ▶ | if ($data =~ m[^\<head]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1436 | 0 | return q{text/html}; | |||||||||||||||||||||||||||
| 1437 | } | ||||||||||||||||||||||||||||
| 1438 | 0 | ▶ | if ($data =~ m[^\<TITLE]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1439 | 0 | return q{text/html}; | |||||||||||||||||||||||||||
| 1440 | } | ||||||||||||||||||||||||||||
| 1441 | 0 | ▶ | if ($data =~ m[^\<title]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1442 | 0 | return q{text/html}; | |||||||||||||||||||||||||||
| 1443 | } | ||||||||||||||||||||||||||||
| 1444 | 0 | ▶ | if ($data =~ m[^\<html]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1445 | 0 | return q{text/html}; | |||||||||||||||||||||||||||
| 1446 | } | ||||||||||||||||||||||||||||
| 1447 | 0 | ▶ | if ($data =~ m[^\<HTML]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1448 | 0 | return q{text/html}; | |||||||||||||||||||||||||||
| 1449 | } | ||||||||||||||||||||||||||||
| 1450 | 0 | ▶ | if ($data =~ m[^\<\!SQ\ A\/E\>]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1451 | 0 | return q{A/E SGML Document binary}; | |||||||||||||||||||||||||||
| 1452 | } | ||||||||||||||||||||||||||||
| 1453 | 0 | ▶ | if ($data =~ m[^\<\!SQ\ STS\>]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1454 | 0 | return q{A/E SGML binary styles file}; | |||||||||||||||||||||||||||
| 1455 | } | ||||||||||||||||||||||||||||
| 1456 | 0 | ▶ | if ($data =~ m[^\367\203]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1457 | 0 | return q{font/x-tex}; | |||||||||||||||||||||||||||
| 1458 | } | ||||||||||||||||||||||||||||
| 1459 | 0 | ▶ | if ($data =~ m[^\367\131]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1460 | 0 | return q{font/x-tex}; | |||||||||||||||||||||||||||
| 1461 | } | ||||||||||||||||||||||||||||
| 1462 | 0 | ▶ | if ($data =~ m[^\367\312]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1463 | 0 | return q{font/x-tex}; | |||||||||||||||||||||||||||
| 1464 | } | ||||||||||||||||||||||||||||
| 1465 | 0 | ▶ | if (length $data > 2) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1466 | 0 | $substr = substr($data, 2, 1024); | |||||||||||||||||||||||||||
| 1467 | 0 | ▶ | if (defined $substr && $substr =~ m[^\000\021]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
defined $substr and $substr =~ /^\000\021/
MC/DC0%0/2
defined $substr and $substr =~ /^\000\021/
defined $substr
$substr =~ /^\000\021/
Truth table0%0/3
A and B
A= defined $substrB= $substr =~ /^\000\021/
| |||||||||||||||||||||||||||||
| 1468 | 0 | return q{font/x-tex-tfm}; | |||||||||||||||||||||||||||
| 1469 | } | ||||||||||||||||||||||||||||
| 1470 | } | ||||||||||||||||||||||||||||
| 1471 | 0 | ▶ | if (length $data > 2) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1472 | 0 | $substr = substr($data, 2, 1024); | |||||||||||||||||||||||||||
| 1473 | 0 | ▶ | if (defined $substr && $substr =~ m[^\000\022]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
defined $substr and $substr =~ /^\000\022/
MC/DC0%0/2
defined $substr and $substr =~ /^\000\022/
defined $substr
$substr =~ /^\000\022/
Truth table0%0/3
A and B
A= defined $substrB= $substr =~ /^\000\022/
| |||||||||||||||||||||||||||||
| 1474 | 0 | return q{font/x-tex-tfm}; | |||||||||||||||||||||||||||
| 1475 | } | ||||||||||||||||||||||||||||
| 1476 | } | ||||||||||||||||||||||||||||
| 1477 | 0 | ▶ | if (length $data > 1) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1478 | 0 | $substr = substr($data, 1, 1024); | |||||||||||||||||||||||||||
| 1479 | 0 | ▶ | if (defined $substr && $substr =~ m[^WPC]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
defined $substr and $substr =~ /^WPC/
MC/DC0%0/2
defined $substr and $substr =~ /^WPC/
defined $substr
$substr =~ /^WPC/
Truth table0%0/3
A and B
A= defined $substrB= $substr =~ /^WPC/
| |||||||||||||||||||||||||||||
| 1480 | 0 | return q{(Corel/WP)}; | |||||||||||||||||||||||||||
| 1481 | } | ||||||||||||||||||||||||||||
| 1482 | } | ||||||||||||||||||||||||||||
| 1483 | 0 | ▶ | if ($data =~ m[^BLENDER]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 1484 | 0 | return q{application/x-blender}; | |||||||||||||||||||||||||||
| 1485 | } | ||||||||||||||||||||||||||||
| 1486 | |||||||||||||||||||||||||||||
| 1487 | # autogerated code ends | ||||||||||||||||||||||||||||
| 1488 | |||||||||||||||||||||||||||||
| 1489 | # fallback case | ||||||||||||||||||||||||||||
| 1490 | { | ||||||||||||||||||||||||||||
| 1491 | 0 | return 'application/octet-stream'; | |||||||||||||||||||||||||||
| 1492 | } | ||||||||||||||||||||||||||||
| 1493 | } | ||||||||||||||||||||||||||||
| 1494 | |||||||||||||||||||||||||||||
| 1495 | 3 | 1; | |||||||||||||||||||||||||||
| 1496 | |||||||||||||||||||||||||||||
| 1497 | __END__ | ||||||||||||||||||||||||||||