From 0830b29be54e02460654cd60116472cb9e065472 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Thu, 12 Mar 2026 21:14:51 +0000 Subject: Clarify variable name --- lib/docx/body-reader.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/docx/body-reader.js b/lib/docx/body-reader.js index 0d3cfb4..2ec9d0d 100644 --- a/lib/docx/body-reader.js +++ b/lib/docx/body-reader.js @@ -205,8 +205,8 @@ function BodyReader(options) { function parseInstrText(instrText, fldChar) { var linkResult = /^\s*HYPERLINK\s+(\\l\s+)?(?:"(.*)"|([^\\]\S*))/.exec(instrText); if (linkResult) { - var target = linkResult[2] === undefined ? linkResult[3] : linkResult[2]; - var options = linkResult[1] === undefined ? {href: target} : {anchor: target}; + var location = linkResult[2] === undefined ? linkResult[3] : linkResult[2]; + var options = linkResult[1] === undefined ? {href: location} : {anchor: location}; return {type: "hyperlink", options: options}; } -- cgit v1.2.3