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

    Function tokenProblem

    • Why value cannot be sent as a token, or undefined when it can. A token is an id, a code, an enum value: a value the API compares exactly. The rules apply to the value with surrounding whitespace trimmed, as it is sent (normalizeToken): not blank (and not only invisible characters or combining marks), no lone surrogate, and no control or format character at all (a zero-width space, a word joiner, a soft hyphen, a byte order mark, a bidi control), since an invisible character in an id only ever makes it match nothing — for a station id, the API's {}, which reads as "no such station". The reason quotes the value visibly (quoteValue).

      Parameters

      • value: string

      Returns string | undefined