Skip to content

Commit 3dc8bc3

Browse files
committed
remove trailing mime type spaces & hprof fixture
fixes #112
1 parent 48ae619 commit 3dc8bc3

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

lib/marcel/tables.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2677,7 +2677,7 @@ module Marcel
26772677
['application/vnd.fdf', [[0, b['%FDF-']]]],
26782678
['application/vnd.iccprofile', [[36, b['acsp']]]],
26792679
['application/vnd.isac.fcs', [[0, r["FCS[1-3]\\\\.[0-9] "]]]],
2680-
['application/vnd.java.hprof ', [[0, r["JAVA PROFILE \\\\d\\\\.\\\\d\\\\.\\\\d\\\\u0000"]]]],
2680+
['application/vnd.java.hprof', [[0, r["JAVA PROFILE \\\\d\\\\.\\\\d\\\\.\\\\d\\\\u0000"]]]],
26812681
['application/vnd.java.hprof.text', [[0, r["JAVA PROFILE \\\\d\\\\.\\\\d\\\\.\\\\d,"]]]],
26822682
['application/vnd.lotus-1-2-3;version=1', [[0, b["\000\000\002\000\004\004"]]]],
26832683
['application/vnd.lotus-1-2-3;version=2', [[0, b["\000\000\002\000\006\004\006\000\b\000"]]]],

script/generate_tables.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ def get_matches(mime, parent)
251251
puts " # :nodoc:"
252252
puts " MAGIC = ["
253253
magics.each do |priority, type, matches|
254-
puts " ['#{type}', #{binary_strings(matches).inspect}],"
254+
puts " ['#{type.strip}', #{binary_strings(matches).inspect}],"
255255
end
256256
puts " ]"
257257
puts "end"
19 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)