From f1fc26fadf1b67ad123980d5b89bac2ffe9210f7 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 12 Sep 2026 10:04:18 +0100 Subject: Start warning with capital letter --- lib/docx/body-reader.js | 4 ++-- test/docx/body-reader.tests.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/docx/body-reader.js b/lib/docx/body-reader.js index 2c2a741..8b7167f 100644 --- a/lib/docx/body-reader.js +++ b/lib/docx/body-reader.js @@ -171,7 +171,7 @@ function BodyReader(options) { } else if (type === "end") { if (complexFieldStack.length === 0) { return emptyResultWithMessages([warning( - "ignoring complex field end character without corresponding start character" + "Ignoring complex field end character without corresponding start character" )]); } @@ -187,7 +187,7 @@ function BodyReader(options) { } else if (type === "separate") { if (complexFieldStack.length === 0) { return emptyResultWithMessages([warning( - "ignoring complex field separator character without corresponding start character" + "Ignoring complex field separator character without corresponding start character" )]); } diff --git a/test/docx/body-reader.tests.js b/test/docx/body-reader.tests.js index d8b521c..86f70d3 100644 --- a/test/docx/body-reader.tests.js +++ b/test/docx/body-reader.tests.js @@ -593,7 +593,7 @@ test("complex fields", (function() { assertThat(result.value.children, contains( isEmptyRun )); - assert.deepEqual(result.messages, [warning("ignoring complex field separator character without corresponding start character")]); + assert.deepEqual(result.messages, [warning("Ignoring complex field separator character without corresponding start character")]); }, "end character without corresponding start character is ignored": function() { @@ -606,7 +606,7 @@ test("complex fields", (function() { assertThat(result.value.children, contains( isEmptyRun )); - assert.deepEqual(result.messages, [warning("ignoring complex field end character without corresponding start character")]); + assert.deepEqual(result.messages, [warning("Ignoring complex field end character without corresponding start character")]); } }; })()); -- cgit v1.2.3