diff options
| author | Michael Williamson <mike@zwobble.org> | 2026-09-12 10:04:18 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2026-09-12 10:04:18 +0100 |
| commit | f1fc26fadf1b67ad123980d5b89bac2ffe9210f7 (patch) | |
| tree | a01d3267951d8aa2784842d79e96a2aa5e55d3da | |
| parent | 62d4d33f71b17829f63d408ebe0f4c5eb560307e (diff) | |
Start warning with capital letter
| -rw-r--r-- | lib/docx/body-reader.js | 4 | ||||
| -rw-r--r-- | 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")]); } }; })()); |
