diff --git a/ext/js/language/la/latin-text-preprocessors.js b/ext/js/language/la/latin-text-preprocessors.js index 1a8a8ab09..42ea0c5f8 100644 --- a/ext/js/language/la/latin-text-preprocessors.js +++ b/ext/js/language/la/latin-text-preprocessors.js @@ -25,9 +25,15 @@ export const processDiphtongs = { case 'off': return str; case 'direct': - return str.replace(/æ/g, 'ae').replace(/Æ/g, 'AE').replace(/œ/g, 'oe').replace(/Œ/g, 'OE'); + return str.replace(/æ/g, 'ae') + .replace(/Æ/g, 'AE') + .replace(/œ/g, 'oe') + .replace(/Œ/g, 'OE'); case 'inverse': - return str.replace(/ae/g, 'æ').replace(/AE/g, 'Æ').replace(/oe/g, 'œ').replace(/OE/g, 'Œ'); + return str.replace(/ae/g, 'æ') + .replace(/AE/g, 'Æ') + .replace(/oe/g, 'œ') + .replace(/OE/g, 'Œ'); } }, };