Skip to content

Instantly share code, notes, and snippets.

Hosein BehkamaL hoseinBL

Block or report user

Report or block hoseinBL

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Use this simple function to convert your string

persianNumbers = [/۰/g, /۱/g, /۲/g, /۳/g, /۴/g, /۵/g, /۶/g, /۷/g, /۸/g, /۹/g],
arabicNumbers  = [/٠/g, /١/g, /٢/g, /٣/g, /٤/g, /٥/g, /٦/g, /٧/g, /٨/g, /٩/g],
fixNumbers = function (str)
  if(typeof str === 'string')
    for(var i=0; i<10; i++)
You can’t perform that action at this time.