Hyphenate "worst-case scenario"

This commit is contained in:
Domenic Denicola 2020-12-26 16:34:26 -05:00
commit 89789724d1

View file

@ -664,6 +664,7 @@ function fixHyphens(xml) {
xml = xml.replace(/([Oo]ne) sided/g, "$1-sided");
xml = xml.replace(/([Mm]edium) sized/g, "$1-sized");
xml = xml.replace(/([Tt]eary) eyed/g, "$1-eyed");
xml = xml.replace(/([Ww]orst) case scenario/g, "$1-case scenario");
xml = xml.replace(/([Ss]elf) (conscious|esteem|loathing|harm|destruct|preservation)/g, "$1-$2");
xml = xml.replace(/([Oo]ne|[Tt]wo|[Tt]hree|[Ff]our|[Ff]ourth) dimensional/g, "$1-dimensional");
xml = xml.replace(/(?<=\b)([Oo]ne) on one(?=\b)/g, "$1-on-one");