Always hyphenate "one-on-one"

This commit is contained in:
Domenic Denicola 2020-11-29 17:10:54 -05:00
commit e3ef2e254a

View file

@ -600,6 +600,7 @@ function fixHyphens(xml) {
xml = xml.replace(/able bodied/g, "able-bodied");
xml = xml.replace(/self conscious/g, "self-conscious");
xml = xml.replace(/([Oo]ne|[Tt]wo|[Tt]hree|[Ff]our|[Ff]ourth) dimensional/g, "$1-dimensional");
xml = xml.replace(/(?<=\b)one on one(?=\b)/g, "one-on-one");
// This is usually correct but sometimes wrong.
xml = xml.replace(/neo /g, "neo-");