Persian Tools - v4.0.3
    Preparing search index...

    Variable isFarsiConst

    isFarsi: (str: string, isComplex?: boolean, trimPattern?: RegExp) => boolean = isPersian

    Type declaration

      • (str: string, isComplex?: boolean, trimPattern?: RegExp): boolean
      • Check if string is in persian.

        Parameters

        • str: string
        • isComplex: boolean = false

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

        • trimPattern: RegExp = TRIM_REGEX

          Pattern of characters which you want to trim from the string e.g. "-+. ()"

        Returns boolean

        Return true if the entered string does not include other-language characters.