summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2026-03-12 21:14:51 +0000
committerMichael Williamson <mike@zwobble.org>2026-03-12 21:14:51 +0000
commit0830b29be54e02460654cd60116472cb9e065472 (patch)
tree04b13aa3a8ebb9cd046c078511be2cd67d3824d5
parent8e6c5c7a3387b43b5d10f81357f7a1e1d87f451b (diff)
Clarify variable name
-rw-r--r--lib/docx/body-reader.js4
1 files changed, 2 insertions, 2 deletions
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};
}