Fix t.me/username links with upper-case letters.

This commit is contained in:
John Preston 2018-11-30 13:25:08 +04:00
parent 03b0c0cff4
commit 47d5e54c48
1 changed files with 1 additions and 1 deletions

View File

@ -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();