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

    Function containsPhrase

    • True when tokens occurs as a contiguous run in haystack's token stream — as printed, or with the words a line-end hyphen broke joined (lineBreakJoins), so "Kleinen Anfrage" finds Kleinen Anfra-\nge.

      Parameters

      • haystack: string
      • tokens: string[]

      Returns boolean