Standardize on one capitalization for "patrol block"

This commit is contained in:
Domenic Denicola 2020-10-17 20:16:32 -04:00
commit 84e0d83bd1

View file

@ -305,6 +305,10 @@ function getBodyXML(chapter, contentEl) {
// ReSound's name is sometimes miscapitalized. The word is never used in a non-name context.
xml = xml.replace(/Resound/g, "ReSound");
// "patrol block" is capitalized three different ways: "patrol block", "Patrol block", and "Patrol Block". I can see
// arguments for any of them, so let's go with the most prevalent: "patrol block".
xml = xml.replace(/([^ ]) Patrol (?:B|b)lock/g, "$1 patrol block");
// This is sometimes missing its capitalization.
xml = xml.replace(/the birdcage/g, "the Birdcage");