Hyphenate a variety of words starting with "self-"

Previously we only did self-conscious; this brings along self-esteem, self-loathing, and self-harm.
This commit is contained in:
Domenic Denicola 2020-12-19 14:44:29 -05:00
commit 5ff6621b31

View file

@ -627,7 +627,7 @@ function fixHyphens(xml) {
xml = xml.replace(/creepy crawl/g, "creepy-crawl");
xml = xml.replace(/well armed/g, "well-armed");
xml = xml.replace(/able bodied/g, "able-bodied");
xml = xml.replace(/self conscious/g, "self-conscious");
xml = xml.replace(/self (conscious|esteem|loathing|harm)/g, "self-$1");
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");