Function findMatches

  • Find match highlights when testing a word against a pattern.

    Parameters

    • word: string

      the word to test.

    • pattern: string

      the word to match against.

    Returns {
        end: number;
        start: number;
    }[] | undefined

    the list of highlights if present.