diff --git a/package.json b/package.json index 6dc1de1..477b844 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lingdocs/pashto-inflector", - "version": "1.5.4", + "version": "1.5.5", "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/accent-helpers.ts b/src/lib/accent-helpers.ts index 5e6514c..29f067e 100644 --- a/src/lib/accent-helpers.ts +++ b/src/lib/accent-helpers.ts @@ -112,10 +112,10 @@ export function removeAccents(s: T.PsString): T.PsString; export function removeAccents(s: string): string; export function removeAccents(s: T.PsString | string): T.PsString | string { if (typeof s !== "string") { - return makePsString( - s.p, - removeAccents(s.f), - ); + return { + ...s, + f: removeAccents(s.f), + }; } return s.replace(/á|é|í|ó|ú|Ú/, (match) => { const r = accentReplacer.find((x) => x.accented === match);