Function toPersianChars

  • toPersianChars

    Description: Replace all instances of ي and ك with ی and ک, respectively. It should not make any changes to an Arabic text surrounded by appropriate templates.

    Parameters

    • str: string

    Returns string | undefined

    cleaned characters of arabic characters

    toPersianChars