File tree 3 files changed +4
-8
lines changed 3 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,6 @@ require('../src/iana.json').forEach(function (mime) {
7
7
// and i don't think we need to bother with the "Reference"
8
8
// just look at the site yourself!
9
9
10
- if ( mime . template . substr ( - 8 ) === '/example' ) {
11
- // ignore example templates
12
- return
13
- }
14
-
15
10
var template = mime . template
16
11
17
12
if ( ! template ) {
Original file line number Diff line number Diff line change @@ -33,12 +33,13 @@ function* get(type) {
33
33
var reduceRows = generateRowMapper ( headers )
34
34
35
35
return mimes . map ( function ( row ) {
36
- return row . reduce ( reduceRows , { type : type } )
36
+ var data = row . reduce ( reduceRows , { type : type } )
37
+ if ( data . template !== type + '/example' ) return data
37
38
} )
38
39
}
39
40
40
41
function concat ( a , b ) {
41
- return a . concat ( b )
42
+ return a . concat ( b . filter ( Boolean ) )
42
43
}
43
44
44
45
function generateRowMapper ( headers ) {
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments