1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 08:28:11 +00:00

LibCore: Replace non-breaking hyphens with regular ones in MimeData

These three lines were added in commits 41d5531, 0f7a651 and 97aca8f all
the way back in June 2020, and went unnoticed until Lucas pointed this
out during my refactoring.
This commit is contained in:
Valtteri Koskivuori 2023-07-11 17:45:32 +03:00 committed by Sam Atkins
parent f2ce47e3a1
commit 5615ea5386

View file

@ -118,11 +118,11 @@ StringView guess_mime_type_based_on_filename(StringView path)
if (path.ends_with(".webp"sv, CaseSensitivity::CaseInsensitive))
return "image/webp"sv;
if (path.ends_with(".pbm"sv, CaseSensitivity::CaseInsensitive))
return "image/xportablebitmap"sv;
return "image/x-portable-bitmap"sv;
if (path.ends_with(".pgm"sv, CaseSensitivity::CaseInsensitive))
return "image/xportablegraymap"sv;
return "image/x-portable-graymap"sv;
if (path.ends_with(".ppm"sv, CaseSensitivity::CaseInsensitive))
return "image/xportablepixmap"sv;
return "image/x-portable-pixmap"sv;
if (path.ends_with(".qoi"sv, CaseSensitivity::CaseInsensitive))
return "image/x-qoi"sv;
if (path.ends_with(".tga"sv, CaseSensitivity::CaseInsensitive))