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

    Function foldName

    • Fold a water name for the case-insensitive water match, applied to both sides: NFKC (a decomposed umlaut typed or pasted on macOS matches the feed's composed text, and fullwidth or other compatibility forms, ELBE, their plain letters), invisible format characters dropped (a soft hyphen or zero-width space in a name the server sent; the needle can't hold one, textProblem refuses it), lower case, every whitespace run (a double space, a tab, a no-break space from a web page) as one space and the ends trimmed, "ß" as "ss" ("NEISSE" is the upper-case form of "Neiße", and names occur in both spellings, e.g. "…wasserstrasse" / "…wasserstraße"), "ä"/"ö"/"ü" as "ae"/"oe"/"ue" (a keyboard without umlauts writes "Roeder" for "Röder", as it writes "Weisse" for "Weiße"), and the Unicode dashes as "-".

      Parameters

      • text: string

      Returns string