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

    Function searchMatches

    • The entries a search term matches: those containing it literally (accents and ß folded) and, only when nothing matched literally, those that match with the umlaut spellings contracted — so "koeln" still finds "Köln" and "duesseldorf" finds "Dusseldorf", while "ae" no longer matches every entry with an "a".

      Type Parameters

      • T

      Parameters

      • entries: readonly T[]
      • term: string
      • text: (entry: T) => string[]

      Returns T[]