diff --git a/src/titles/titleFormatter.ts b/src/titles/titleFormatter.ts index 6694beb..e9a3cbe 100644 --- a/src/titles/titleFormatter.ts +++ b/src/titles/titleFormatter.ts @@ -59,7 +59,7 @@ export async function toLowerCaseTitle(str: string): Promise { let result = ""; for (const word of words) { - if (forceKeepFormatting(word) || (!isGreek && await greekLetterAllowed(word))) { + if (!isGreek && await greekLetterAllowed(word)) { result += word + " "; } else { result += await toLowerCase(word, isTurkiq) + " "; @@ -76,7 +76,7 @@ export async function toFirstLetterUppercase(str: string): Promise { let result = ""; let index = 0; for (const word of words) { - if (forceKeepFormatting(word) || (!isGreek && await greekLetterAllowed(word))) { + if (!isGreek && await greekLetterAllowed(word)) { result += word + " "; } else if (startOfSentence(index, words) && !isNumberThenLetter(word)) { result += await capitalizeFirstLetter(word, isTurkiq) + " ";