Minor Update

This commit is contained in:
netkas 2025-01-06 01:41:16 -05:00
parent 2656becd25
commit 4058a36cfe

View file

@ -1,9 +1,9 @@
<?php
namespace Socialbox\Classes;
namespace Socialbox\Classes;
class Validator
{
class Validator
{
private const string PEER_ADDRESS_PATTERN = "/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/";
private const string USERNAME_PATTERN = "/^[a-zA-Z0-9_]+$/";
@ -55,4 +55,4 @@ class Validator
{
return preg_match("/^\+[0-9]{1,15}$/", $phoneNumber) === 1;
}
}
}