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

    Function textProblem

    • Why value cannot be used as a text filter (area, party, groupType, land, wahlkreis), or undefined when it can. The filters match the downloaded rows as substrings, so each of these could only match nothing — or, blank, every row — and is refused before any request:

      • a value that is blank once trimmed (Unicode whitespace, U+00A0 included), or that holds only invisible characters and combining marks (isBlank);
      • a lone surrogate (half of a character);
      • 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 match fail. The reason quotes the value with every invisible character escaped (quoteValue).

      Parameters

      • value: string

      Returns string | undefined