Remove erroneous hyphen in "preemptive(ly)"

This commit is contained in:
Domenic Denicola 2020-10-26 20:32:19 -04:00
commit ab28acfd9a

View file

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