Hyphenate compound words ending in "haired"
This commit is contained in:
parent
5c80327fef
commit
2e4a3e56dc
1 changed files with 3 additions and 0 deletions
|
|
@ -578,6 +578,9 @@ function fixHyphens(xml) {
|
|||
xml = xml.replace(/(?<!-)(one|two|three|four|five|six|seven|eight|nine|twelve)-hundred/, "$1 hundred");
|
||||
xml = xml.replace(/(hundred|ninety)-percent(?!-)/g, "$1 percent");
|
||||
|
||||
// "red-haired", "long-haired", etc.: they all need hyphens
|
||||
xml = xml.replace(/ haired/g, "-haired");
|
||||
|
||||
// These are consistently missing hyphens.
|
||||
xml = xml.replace(/self destruct/g, "self-destruct");
|
||||
xml = xml.replace(/life threatening/g, "life-threatening");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue