Hyphenate "a just-in-case"

This commit is contained in:
Domenic Denicola 2020-12-25 17:37:00 -05:00
commit d0c23d86fd

View file

@ -662,6 +662,10 @@ function fixHyphens(xml) {
// second in a series of guesses.
xml = xml.replace(/(?<!my |that )([Ss]econd) guess(?!es)/g, "$1-guess");
// When used as a phrase "just in case" gets no hyphens. When used as a noun or adjective it does. A couple of the
// noun cases are missing one or both hyphens.
xml = xml.replace(/([Aa]) just[ -]in case/g, "$1 just-in-case");
// This is usually correct but sometimes wrong.
xml = xml.replace(/neo /g, "neo-");