Fix instances of "The clairvoyant"

Previously we only fixed "the clairvoyant", missing cases where it his name started sentences.
This commit is contained in:
Domenic Denicola 2020-10-31 17:53:32 -04:00
commit dd2b5b15ce

View file

@ -329,7 +329,7 @@ function getBodyXML(chapter, book, 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.
// 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");
xml = xml.replace(/([Tt])he clairvoyant([^s])/g, "$1he Clairvoyant$2");
// ReSound's name is sometimes miscapitalized. The word is never used in a non-name context.
xml = xml.replace(/Resound/g, "ReSound");