Function hasPersian

Check if string includes persian alphabet.

  • Parameters

    • str: string
    • isComplex: boolean = false

      in complex mode, we accept some specific characters which are common in Farsi text.

    Returns boolean

    Return true if the entered string includes persian characters