mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
fix: add application/x-wine-extension-ini to text mime (#259)
This commit is contained in:
parent
ec29ee5d92
commit
774f8bc901
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ pub enum MimeKind {
|
||||||
|
|
||||||
impl MimeKind {
|
impl MimeKind {
|
||||||
pub fn new(s: &str) -> Self {
|
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
|
Self::Text
|
||||||
} else if s.starts_with("image/") {
|
} else if s.starts_with("image/") {
|
||||||
Self::Image
|
Self::Image
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue