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

rangeUsingWildcards() protected method

protected rangeUsingWildcards ( $input )
    protected function rangeUsingWildcards($input)
    {
        $input = $this->fillAddress($input);
        if (strpos($input, ':') !== false) {
            return $this->normalize(strtr($input, '*', '0')) . '-' . $this->normalize(str_replace('*', 'ffff', $input));
        }
        return strtr($input, '*', '0') . '-' . str_replace('*', '255', $input);
    }