@maschinenlesbar.org/dwd-cli
    Preparing search index...

    Variable baseUrlProblemConst

    baseUrlProblem: Problem<unknown> = ...

    A base URL (baseUrl, staticBaseUrl) must be an absolute http:/https: URL without a query or fragment, and without whitespace or control characters. new URL() trims surrounding whitespace and drops tab/CR/LF silently, so the URL requested would not be the one typed: the raw string is checked rather than the parsed one. Request paths are appended to the base's path, so a ? or # would swallow them. WHATWG reads a backslash in an http(s) URL as /, ending the host where a reader of the text would not (https://u:pw@a.example\@b.example sends the login to a.example), so a backslash is refused; and it skips any slashes after the scheme, repairing http:host, http:/host and http:///host into http://host silently, so the scheme must be followed by exactly // and the host. Userinfo (user:pw@) is allowed: the engine sends it as Basic auth, for a proxy or mirror behind a login; a % in it must start a valid escape (%25 for a literal one). The reasons never repeat the value, nor a part of it: a scheme is named (Unsupported scheme "ftp:") only when the value spells one (<scheme>://), since a scheme-less user:password@host parses with the user name as its scheme.