aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
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;
}