From e3ef2e254ab5ccbdd9322db500b8aa6e7f43d060 Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Sun, 29 Nov 2020 17:10:54 -0500 Subject: [PATCH] Always hyphenate "one-on-one" --- lib/convert-worker.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/convert-worker.js b/lib/convert-worker.js index 40ab0ab..6f52ab1 100644 --- a/lib/convert-worker.js +++ b/lib/convert-worker.js @@ -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-");