Fix "shoulder-mounted"

This commit is contained in:
Domenic Denicola 2017-11-27 02:17:43 +01:00
commit f1d9276b67

View file

@ -274,6 +274,9 @@ function getBodyXML(chapter, contentEl) {
// Signal(l)ing/signal(l)ed are spelled both ways. Both are acceptable in English. Let's standardize on single-L.
xml = xml.replace(/(S|s)ignall/g, "$1ignal");
// This is consistently missing hyphens.
xml = xml.replace(/shoulder mounted/g, "shoulder-mounted");
// One-off fixes
(substitutions[chapter.url] || []).forEach(substitution => {
const indexOf = xml.indexOf(substitution.before);