@maschinenlesbar.org/nina-warnungen-cli
    Preparing search index...

    Function validateBaseUrl

    • Check a base URL against every rule of baseUrlProblem — blank, whitespace or control characters, unparseable, a scheme other than http:/https:, a query or fragment — and return it with trailing slashes stripped. A bad value throws a NinaValidationError ("Invalid : "): it is a configuration error, not a transport failure. The raw value is checked, before the slash strip, so "https://h/ " cannot slip past it.

      Parameters

      • raw: string
      • name: string = "baseUrl"

      Returns string