docx-validate
    Preparing search index...

    Function getGitWordDiff

    • Render git diff --word-diff=plain between two strings. Returns the post-@@ content lines on success, null on git failure. Mirrors _get_git_word_diff — first attempt uses --word-diff-regex=. (per-char granularity); if that yields nothing, retries without the regex (line granularity). The retry gets only what is left of GIT_DIFF_BUDGET_MS.

      Parameters

      • originalText: string
      • modifiedText: string

      Returns Promise<string | null>