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:
parent
367b9e6c5c
commit
176d88eea2
1 changed files with 2 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue