Users: Allow use of underscores in the Telegram account name

This commit is contained in:
Maxim Leshchenko 2021-12-08 22:19:16 +02:00
parent 9a48870eac
commit 1888fb69a1
No known key found for this signature in database
GPG key ID: BB9C44A8733FBEEE

View file

@ -19,7 +19,7 @@ class Validator
function telegramValid(string $telegram): bool
{
return (bool) preg_match("/^(?:t.me\/|@)?([a-zA-Z0-9]{0,32})$/", $telegram);
return (bool) preg_match("/^(?:t.me\/|@)?([a-zA-Z0-9_]{0,32})$/", $telegram);
}
use TSimpleSingleton;