rock\sanitize\rules\Ip::fillAddress PHP Method

fillAddress() protected method

protected fillAddress ( $input, $char = '*' )
    protected function fillAddress($input, $char = '*')
    {
        if (strpos($input, ':') !== false) {
            while (substr_count($input, ':') < 7) {
                $input .= ':' . $char;
            }
            return $input;
        }
        while (substr_count($input, '.') < 3) {
            $input .= '.' . $char;
        }
        return $input;
    }