public function validate($tag, $alias)
    {
        $simpleAlias  = preg_replace('~(\.x)?-dev~', '', $alias);
        $versionLevel = count(explode('.', $simpleAlias));
        $reducedTag   = preg_replace('~-.*$~', '', $tag);
        $reducedTag   = implode('.', array_slice(explode('.', $reducedTag), 0, $versionLevel));

        return version_compare($reducedTag, $simpleAlias, '<=');
    }