mirror of
https://github.com/telegramdesktop/tdesktop
synced 2024-12-27 09:03:02 +00:00
Fix t.me/username links with upper-case letters.
This commit is contained in:
parent
03b0c0cff4
commit
47d5e54c48
@ -172,7 +172,7 @@ bool ResolveUsername(const Match &match, const QVariant &context) {
|
||||
const auto domain = params.value(qsl("domain"));
|
||||
const auto valid = [](const QString &domain) {
|
||||
return qthelp::regex_match(
|
||||
qsl("^[a-z0-9\\.\\_]+$"),
|
||||
qsl("^[a-zA-Z0-9\\.\\_]+$"),
|
||||
domain,
|
||||
{}
|
||||
).valid();
|
||||
|
Loading…
Reference in New Issue
Block a user