mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
Users: Allow use of underscores in the Telegram account name
This commit is contained in:
parent
9a48870eac
commit
1888fb69a1
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue