fix isPattern5Entry

This commit is contained in:
lingdocs 2022-09-12 20:36:30 +04:00
parent 244747958e
commit 7efc30bbb7
2 changed files with 2 additions and 2 deletions

View File

@ -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",

View File

@ -148,7 +148,7 @@ export function isPattern5Entry<T extends (T.NounEntry | T.AdjectiveEntry)>(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) === "ه")
);
}