@maschinenlesbar.org/pegel-online-cli
    Preparing search index...

    Function normalizeInput

    • The form in which an id, name or filter value is sent: surrounding whitespace removed and composed (NFC). The API matches station names, waters and ids exactly, so "RHEIN " (a trailing space from a copy) listed no station and "BONN " was a 404, and a decomposed umlaut ("KO" + U+0308 + "LN", as pasted from macOS file names or some PDFs) found nothing either; no name upstream begins or ends with whitespace. NFC, not NFKC: an id lookup must not rewrite compatibility characters, and case is left alone (the API ignores it for station ids, but not everywhere).

      Parameters

      • value: string

      Returns string