Skip to content

Commit

Permalink
[BUGFIX] Do not detect "image/svg" as binary file
Browse files Browse the repository at this point in the history
  • Loading branch information
a-r-m-i-n committed Dec 3, 2023
1 parent 161239a commit 2132793
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EditorConfig/Utility/MimeTypeUtility.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public static function isCommonBinaryType(string $filePath): bool
if (0 === strpos($mimeType, 'font/')) {
return true;
}
if (0 === strpos($mimeType, 'image/')) {
if ($mimeType !== 'image/svg' && 0 === strpos($mimeType, 'image/')) {
return true;
}
if (0 === strpos($mimeType, 'audio/')) {
Expand Down

0 comments on commit 2132793

Please sign in to comment.