Hyphenate "fight or flight" when appropriate
This commit is contained in:
parent
2fb075128a
commit
26a2b9c9b5
1 changed files with 3 additions and 0 deletions
|
|
@ -678,6 +678,9 @@ function fixHyphens(xml) {
|
||||||
/face to face(?= meeting| hang-out| interaction| contact| conversation| confrontation| fight)/g,
|
/face to face(?= meeting| hang-out| interaction| contact| conversation| confrontation| fight)/g,
|
||||||
"face-to-face");
|
"face-to-face");
|
||||||
|
|
||||||
|
// When used as an adjective, it's hyphenated. This heuristic works in the books.
|
||||||
|
xml = xml.replace(/fight or flight(?= [a-z])/g, "fight-or-flight");
|
||||||
|
|
||||||
// This is usually correct but sometimes wrong.
|
// This is usually correct but sometimes wrong.
|
||||||
xml = xml.replace(/neo /g, "neo-");
|
xml = xml.replace(/neo /g, "neo-");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue