Replace hyphen-minus with em dash when preceding a question mark

This commit is contained in:
Domenic Denicola 2020-11-23 19:30:38 -05:00
commit 1da99791d3

View file

@ -367,6 +367,7 @@ function fixEmDashes(xml) {
xml = xml.replace(/\s+—”/g, "—”");
xml = xml.replace(/I-I/g, "I—I");
xml = xml.replace(/I-uh/g, "I—uh");
xml = xml.replace(/-\?/g, "—?");
return xml;
}