Skip to content

Commit

Permalink
Better text media type detection
Browse files Browse the repository at this point in the history
  • Loading branch information
abdolence committed Aug 15, 2024
1 parent 2ba5414 commit ef8385b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/redacters/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ impl<'a> Redacters<'a> {
|| mime.subtype() == mime::XML
|| mime.subtype() == mime::CSS
|| mime.subtype() == "x-yaml"
|| mime.subtype() == "yaml"))
|| mime.subtype() == "yaml"
|| mime.subtype() == "markdown"
|| mime.subtype().as_str().starts_with("x-")))
|| (mime.type_() == mime::APPLICATION
&& (mime.subtype() == mime::XML
|| mime.subtype() == mime::JSON
Expand Down

0 comments on commit ef8385b

Please sign in to comment.