import re


def handle_star(github_star):
    """
    Get github repository star
    :param github_star: 1.1k or 100
    :return: 1100 or 100
    """
    pattern = r'[^k]+'
    star = re.findall(pattern, github_star)
    if github_star[-1] == 'k':
        return int(float(star[0]) * 1000)
    else:
        return int(star[0])