diff options
| author | Michael Williamson <mike@zwobble.org> | 2026-03-12 21:14:51 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2026-03-12 21:14:51 +0000 |
| commit | 0830b29be54e02460654cd60116472cb9e065472 (patch) | |
| tree | 04b13aa3a8ebb9cd046c078511be2cd67d3824d5 /lib | |
| parent | 8e6c5c7a3387b43b5d10f81357f7a1e1d87f451b (diff) | |
Clarify variable name
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/docx/body-reader.js | 4 |
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}; } |
