From ea19dbb6c511f28af7f83d12a06e6456d2f8b53a Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Mon, 23 Nov 2020 19:09:40 -0500 Subject: [PATCH] Standardize on "Jotun" instead of "Jotunn" --- lib/convert-worker.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/convert-worker.js b/lib/convert-worker.js index 6f6d4e1..ebdd2bb 100644 --- a/lib/convert-worker.js +++ b/lib/convert-worker.js @@ -345,6 +345,9 @@ function standardizeNames(xml) { // Earlier chapters have a space; later ones do not. They're separate words, so side with the earlier chapters. xml = xml.replace(/Crock o[‘’]Shit/g, "Crock o’ Shit"); + // 5 instances of "Jotun" to 2 of "Jotunn" + xml = xml.replace(/Jotunn/g, "Jotun"); + return xml; }