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

    Function textProblem

    • Why value cannot be sent as a text filter, or undefined when it can. Refused, before any request, as the API would match nothing or everything:

      • a value that is blank once trimmed (Unicode whitespace, U+00A0 included), or that holds only invisible characters and combining marks (isBlank): an empty filter reads as "no filter" upstream, which answers with the whole unfiltered list;
      • a lone surrogate (half of a character, sent as U+FFFD);
      • a control character (but TAB, LF and CR) or a format character (a zero-width space, a soft hyphen, a bidi control; ZWNJ and ZWJ are allowed): pasted along, it makes the search find nothing (last_name=<ZWSP>Scholz counted 0 where Scholz counted 31). The reason quotes the value with every invisible character escaped (describeValue).

      Parameters

      • value: string

      Returns string | undefined