mirror of
https://github.com/sxyazi/yazi.git
synced 2024-12-18 14:21:32 +03:00
fix: add application/x-wine-extension-ini
to text mime (#259)
This commit is contained in:
parent
ec29ee5d92
commit
774f8bc901
@ -18,7 +18,7 @@ pub enum MimeKind {
|
||||
|
||||
impl MimeKind {
|
||||
pub fn new(s: &str) -> Self {
|
||||
if s.starts_with("text/") || s.ends_with("/xml") || s.ends_with("/javascript") {
|
||||
if s.starts_with("text/") || s.ends_with("/xml") || s.ends_with("/javascript") || s.ends_with("/x-wine-extension-ini") {
|
||||
Self::Text
|
||||
} else if s.starts_with("image/") {
|
||||
Self::Image
|
||||
|
Loading…
Reference in New Issue
Block a user