From 745a7333bab7665fa4fff27d8ad2feaff4e16ebb Mon Sep 17 00:00:00 2001 From: lingdocs <71590811+lingdocs@users.noreply.github.com> Date: Fri, 27 Aug 2021 13:15:12 +0400 Subject: [PATCH] more --- src/lib/conjugation-forms.tsx | 1 - src/lib/convert-spelling.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/conjugation-forms.tsx b/src/lib/conjugation-forms.tsx index 48e576c..44ee94c 100644 --- a/src/lib/conjugation-forms.tsx +++ b/src/lib/conjugation-forms.tsx @@ -662,7 +662,6 @@ export const getForms = ({ conj, filterFunc, mode, subject, object, sentenceLeve return mode === "chart" ? formsToUse : formMap( - // TODO: somewhere in one of these the english conjugations are being stripped out for the past tense items formFilter(formsToUse, (f) => f.sentence), makeSentence, conj.info, diff --git a/src/lib/convert-spelling.ts b/src/lib/convert-spelling.ts index 36130e9..2ddfb41 100644 --- a/src/lib/convert-spelling.ts +++ b/src/lib/convert-spelling.ts @@ -20,7 +20,7 @@ export function convertSpelling(input: string, spelling: T.Spelling): string { return input; } return input.replace(/ای(?![\u0621-\u065f\u0670-\u06d3\u06d5])/g, "ائ") - .replace(/وی(?![\u0621-\u065f\u0670-\u06d3\u06d5])/g, "وئ") + .replace(/وی(?![\u0621-\u065f\u0670-\u06d3\u06d5])/g, "وی") .replace(/ی(?![\u0621-\u065f\u0670-\u06d3\u06d5])/g, "ے") .replace(/ي(?![\u0621-\u065f\u0670-\u06d3\u06d5])/g, (spelling === "Pakistani ی") ? "ی"