mirror of https://github.com/procxx/kepka.git
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 domain = params.value(qsl("domain"));
|
||||||
const auto valid = [](const QString &domain) {
|
const auto valid = [](const QString &domain) {
|
||||||
return qthelp::regex_match(
|
return qthelp::regex_match(
|
||||||
qsl("^[a-z0-9\\.\\_]+$"),
|
qsl("^[a-zA-Z0-9\\.\\_]+$"),
|
||||||
domain,
|
domain,
|
||||||
{}
|
{}
|
||||||
).valid();
|
).valid();
|
||||||
|
|
Loading…
Reference in New Issue