From 3d6e02f6fa943bf30fe3461e409b35613479fd23 Mon Sep 17 00:00:00 2001 From: lingdocs <71590811+lingdocs@users.noreply.github.com> Date: Tue, 31 Aug 2021 13:51:16 +0400 Subject: [PATCH] fix spelling conversion --- package.json | 2 +- src/lib/convert-spelling.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 1f41be6..85ac211 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lingdocs/pashto-inflector", - "version": "0.9.1", + "version": "0.9.2", "author": "lingdocs.com", "description": "A Pashto inflection and verb conjugation engine, inculding React components for displaying Pashto text, inflections, and conjugations", "homepage": "https://verbs.lingdocs.com", diff --git a/src/lib/convert-spelling.ts b/src/lib/convert-spelling.ts index 2ddfb41..36130e9 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 ی") ? "ی"