diff --git a/lib/NameValidator.php b/lib/NameValidator.php index 3a8d764..350c45b 100644 --- a/lib/NameValidator.php +++ b/lib/NameValidator.php @@ -8,7 +8,7 @@ class NameValidator { * * @var string */ - private $validatePattern = '/^(?:[a-z][a-z0-9\-]{0,61}[a-z0-9])(?:\.[a-z][a-z0-9\-]{0,61}[a-z0-9])*$/i'; + private $validatePattern = '/^(?:[a-z0-9][a-z0-9\-]{0,61}[a-z0-9])(?:\.[a-z0-9][a-z0-9\-]{0,61}[a-z0-9])*$/i'; /** * Check that a name is valid