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 3e0a216
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EditorConfig/Utility/MimeTypeUtility.php
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 ('image/svg' !== $mimeType && 0 === strpos($mimeType, 'image/')) {
return true;
}
if (0 === strpos($mimeType, 'audio/')) {
Expand Down

0 comments on commit 3e0a216

Please sign in to comment.