def get_version_from_path(path: str) ->str:
    """Extracts a Firefox version from a path.

    Example:
    for input: '/Users/username/workspace/iris/firefox-62.0.3-build1.en-US.mac.dmg' output is '62.0.3'
    """
    new_str = path[path.find('-') + 1:len(path)]
    return new_str[0:new_str.find('-')]
