From 7efc30bbb78c9a331c4b556c57f713d951f73677 Mon Sep 17 00:00:00 2001 From: lingdocs <71590811+lingdocs@users.noreply.github.com> Date: Mon, 12 Sep 2022 20:36:30 +0400 Subject: [PATCH] fix isPattern5Entry --- package.json | 2 +- src/lib/type-predicates.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a259026..2a574b2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lingdocs/pashto-inflector", - "version": "3.9.3", + "version": "3.9.4", "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/type-predicates.ts b/src/lib/type-predicates.ts index 3863c53..bb39f19 100644 --- a/src/lib/type-predicates.ts +++ b/src/lib/type-predicates.ts @@ -148,7 +148,7 @@ export function isPattern5Entry(e: T return ( !!(e.infap && e.infaf && e.infbp && e.infbf) && - e.infap.slice(-1) === "ه" && e.infap.charAt(e.infap.length - 3) === "ا" + (!e.infap.slice(1).includes("ا") && e.infap.slice(-1) === "ه") ); }