(match: Match)
return str(
        match.match[:start_privy_len]
        + censored[start_privy_len:end_privy_len]
        + match.match[end_privy_len:]
    )
censored_match censors a match value revealing only the first and last
    1/6th of the match up to a maximum of MAXIMUM_CENSOR_LENGTH.

    :return: match value censored
censored_match censors a match value revealing only the first and last
    1/6th of the match up to a maximum of MAXIMUM_CENSOR_LENGTH.
censored_match censors a match value revealing only the first and last 1 / 6th of the match up to a maximum of MAXIMUM_CENSOR_LENGTH .
def censor_match(match: Match) -> str:
    """
    censored_match censors a match value revealing only the first and last
    1/6th of the match up to a maximum of MAXIMUM_CENSOR_LENGTH.

    :return: match value censored
    """
    len_match = len(match.match)
    start_privy_len = min(math.ceil(len_match / 6), MAXIMUM_CENSOR_LENGTH)
    end_privy_len = len_match - min(math.ceil(len_match / 6), MAXIMUM_CENSOR_LENGTH)

    censored = REGEX_MATCH_HIDE.sub("*", match.match)

    return str(
        match.match[:start_privy_len]
        + censored[start_privy_len:end_privy_len]
        + match.match[end_privy_len:]
    )
def censor_match ( match : Match ) -> str : len_match = len ( match . match ) start_privy_len = min ( math . ceil ( len_match / 6 ) , MAXIMUM_CENSOR_LENGTH ) end_privy_len = len_match - min ( math . ceil ( len_match / 6 ) , MAXIMUM_CENSOR_LENGTH ) censored = REGEX_MATCH_HIDE . sub ( "*" , match . match ) return str ( match . match [ : start_privy_len ] + censored [ start_privy_len : end_privy_len ] + match . match [ end_privy_len : ] )