proposit-core
    Preparing search index...
    • Locate quote in input, returning a verified match or undefined.

      hintUtf16 selects among repeated occurrences — the occurrence whose start sits nearest the hint wins. It never affects whether a quote matches, so a wrong hint degrades to "picked another occurrence of the same text", never to a wrong span.

      The ladder is exact match, then whitespace-insensitive match, then both again with the quote's first character re-cased. Nothing approximate: a quote that still does not match yields undefined.

      Parameters

      • input: string
      • quote: string
      • hintUtf16: number

      Returns TSourceAnchorMatch | undefined