JamesMoss\Flywheel\Repository::validateName PHP Метод

validateName() защищенный Метод

Validates the name of the repo to ensure it can be stored in the filesystem.
protected validateName ( string $name ) : boolean
$name string The name to validate against
Результат boolean Returns true if valid. Throws an exception if not.
    protected function validateName($name)
    {
        if (!preg_match('/^[0-9A-Za-z\\_\\-]{1,63}$/', $name)) {
            throw new \Exception(sprintf('`%s` is not a valid repository name.', $name));
        }
        return true;
    }