@classmethod
def prev_text_version(cls, version):
    """Method which returns previous number from the string.

        From string ``build10s`` it returns 9.

        :param str text: Line to search in.
        :return: Next number
        :rtype: int
        """
    return max(0, cls.parse_text_version(version) - 1)
