Skip to content

Commit

Permalink
Preview JSON and YAML inscriptions as text (#1449)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey authored Feb 2, 2023
1 parent 1a357da commit 10f8469
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/media.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ impl FromStr for Media {
}

const TABLE: &[(&str, Media, &[&str])] = &[
("application/json", Media::Text, &["json"]),
("application/yaml", Media::Text, &["yaml", "yml"]),
("application/pdf", Media::Pdf, &["pdf"]),
("application/pgp-signature", Media::Text, &["asc"]),
("audio/flac", Media::Audio, &["flac"]),
Expand Down

0 comments on commit 10f8469

Please sign in to comment.