Fix over-capitalization of "clairvoyants" in Ward

The heuristic used to fix up Worm needed tweaking for Ward, where lowercase "clairvoyants" occurs several times.
This commit is contained in:
Domenic Denicola 2020-10-17 20:14:38 -04:00
commit 176d88eea2

View file

@ -297,7 +297,8 @@ function getBodyXML(chapter, contentEl) {
// This occurs enough times it's better to do here than in one-off fixes. We correct the single instance where
// it's incorrect to capitalize in the one-off fixes.
xml = xml.replace(/the clairvoyant/g, "the Clairvoyant");
// Note that Ward contains much talk of "the clairvoyants", so we don't want to capitalize plurals.
xml = xml.replace(/the clairvoyant([^s])/g, "the Clairvoyant$1");
// This is sometimes missing its capitalization.
xml = xml.replace(/the birdcage/g, "the Birdcage");