Commit 0830b29 for mammothjs
commit 0830b29be54e02460654cd60116472cb9e065472
Author: Michael Williamson <mike@zwobble.org>
Date: Thu Mar 12 21:14:51 2026 +0000
Clarify variable name
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};
}