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

    Function normalizeFilter

    • The spec as the register should read it: every FilterName normalised (normalizeFilterName), the operators and ands trimmed, and every value as text (normalizeFilterValue: the whitespace outside its quotes dropped, the text inside trimmed and in NFC). The spec is split the way the register splits it, on every ~: names are parts 0, 4, 8, …, operators 1, 5, …, values 2, 6, …, ands 3, 7, … A malformed spec comes back normalised too; filterProblem then reports it. A non-string is returned as is.

      Parameters

      • spec: string

      Returns string