Always capitalize "Earths"

This commit is contained in:
Domenic Denicola 2020-10-31 17:58:16 -04:00
commit 24809f607b

View file

@ -388,6 +388,7 @@ function getBodyXML(chapter, book, contentEl) {
xml = xml.replace(/(Hollow|Cedar) point/g, "$1 Point");
xml = xml.replace(/(Norwalk|Fenway|Stratford) station/g, "$1 Station");
xml = xml.replace(/the megalopolis/g, "the Megalopolis");
xml = xml.replace(/earths(?![a-z])/g, "Earths");
// These are usually not italicized, but sometimes are. Other foreign-language names (like Yàngbǎn) are not
// italicized, so we go in the direction of removing the italics.