import re


def check_legitimate_ver(version):
    """
    This function check if the version is legitimate, only digits and dot.
    :param version:  str
    :return: boolean
    """
    return re.match("^[0-9.]+$", version)