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

    Function normalizeFilter

    • The spec with whitespace next to a ~ dropped where it means nothing: every FilterName normalised (normalizeFilterName), the operators and ands trimmed, and the whitespace outside a quoted value dropped ('Münster' ~and~…); the inside of a quoted value is left as it is. 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