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) {