summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2022-03-09 20:56:56 +0000
committerMichael Williamson <mike@zwobble.org>2022-03-09 20:56:56 +0000
commit52ec8fbfc6da3695d98e83e222232aaa3b1dcf43 (patch)
tree6d4e59baa5caa9b8126b8429836eabc7748d593d /lib
parent76cb8e7a2fe33fa59966f8c9b9ae65bbe85f445a (diff)
Ignore w:u elements when w:val is missing
Diffstat (limited to 'lib')
-rw-r--r--lib/docx/body-reader.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/docx/body-reader.js b/lib/docx/body-reader.js
index 4bd38a9..61b198b 100644
--- a/lib/docx/body-reader.js
+++ b/lib/docx/body-reader.js
@@ -83,7 +83,7 @@ function BodyReader(options) {
function readUnderline(element) {
if (element) {
var value = element.attributes["w:val"];
- return value !== "false" && value !== "0" && value !== "none";
+ return value !== undefined && value !== "false" && value !== "0" && value !== "none";
} else {
return false;
}