Preparing search index...
    • Splits a suggestion around the first case-insensitive occurrence of the query.

      Parameters

      • text: string

        The suggestion text

      • query: string

        The text typed by the user

      Returns HighlightParts

      The parts before, matching and after the query; match is empty when there is none