src/FINDOLOGIC/Export/Helpers/DataHelper.php
public static function validateUrl(string $url): string
    {
        if (!filter_var($url, FILTER_VALIDATE_URL) || !preg_match('/http[s]?:\/\/.*/', $url)) {
            throw new InvalidUrlException();
        }

        return $url;
    }
public static function validateUrl(string $url): string
    {
        if (!filter_var($url, FILTER_VALIDATE_URL) || !preg_match('/http[s]?:\/\/.*/', $url)) {
            throw new InvalidUrlException();
        }

        return $url;
    }
Checks if the provided input complies to a FINDOLOGIC valid url.
URL needs to have a http[s] schema.
See https://docs.findologic.com/doku.php?id=export_patterns:xml#urls

@param string $url The input to check.
@throws InvalidUrlException If the input is no url.
@return string Returns the url if valid.