LibGfx: Serialize unicode-ranges in uppercase

This matches the behavior of other browsers.
This commit is contained in:
Sam Atkins 2025-04-04 15:10:57 +01:00
parent 1e132d9f87
commit 3288c71953
Notes: github-actions[bot] 2025-04-07 09:02:00 +00:00

View file

@ -31,8 +31,8 @@ public:
String to_string() const
{
if (m_min_code_point == m_max_code_point)
return MUST(String::formatted("U+{:x}", m_min_code_point));
return MUST(String::formatted("U+{:x}-{:x}", m_min_code_point, m_max_code_point));
return MUST(String::formatted("U+{:X}", m_min_code_point));
return MUST(String::formatted("U+{:X}-{:X}", m_min_code_point, m_max_code_point));
}
bool operator==(UnicodeRange const& other) const