fix isPattern5Entry
This commit is contained in:
parent
244747958e
commit
7efc30bbb7
|
@ -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",
|
||||
|
|
|
@ -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) === "ه")
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue