From ab28acfd9af94f506abff0e1d6701c3e3ce593f6 Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Mon, 26 Oct 2020 20:32:19 -0400 Subject: [PATCH] Remove erroneous hyphen in "preemptive(ly)" --- lib/convert-worker.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/convert-worker.js b/lib/convert-worker.js index c3b4518..d9f45dd 100644 --- a/lib/convert-worker.js +++ b/lib/convert-worker.js @@ -426,6 +426,9 @@ function getBodyXML(chapter, contentEl) { xml = xml.replace(/well armed/g, "well-armed"); xml = xml.replace(/able bodied/g, "able-bodied"); + // Preemptive(ly) is often hyphenated (not always). It should not be. + xml = xml.replace(/([Pp])re-emptive/g, "$1reemptive"); + // One-off fixes (substitutions[chapter.url] || []).forEach(substitution => { if (substitution.before) {