Hyphenate "a just-in-case"
This commit is contained in:
parent
369714f3d1
commit
d0c23d86fd
1 changed files with 4 additions and 0 deletions
|
|
@ -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-");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue