mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-04-11 04:01:18 +00:00
Accept uppercase hex values in theme testing links.
This commit is contained in:
parent
d822f8e9ff
commit
bc2e6c4fd1
@ -486,6 +486,8 @@ std::optional<CloudTheme> CloudThemes::updateThemeFromLink(
|
||||
? std::nullopt
|
||||
: (value[0] >= 'a' && value[0] <= 'f')
|
||||
? std::make_optional(10 + int(value[0].unicode() - 'a'))
|
||||
: (value[0] >= 'A' && value[0] <= 'F')
|
||||
? std::make_optional(10 + int(value[0].unicode() - 'A'))
|
||||
: (value[0] >= '0' && value[0] <= '9')
|
||||
? std::make_optional(int(value[0].unicode() - '0'))
|
||||
: std::nullopt;
|
||||
|
Loading…
Reference in New Issue
Block a user