diff --git a/lib/convert-worker.js b/lib/convert-worker.js index 30add8e..11ed960 100644 --- a/lib/convert-worker.js +++ b/lib/convert-worker.js @@ -655,6 +655,10 @@ function fixHyphens(xml) { // in the books. xml = xml.replace(/hand to hand(?= [a-z])/g, "hand-to-hand"); + // This is usually wrong but sometimes correct. The lookarounds avoid specific cases where it's referring to an actual + // second in a series of guesses. + xml = xml.replace(/(?