From: Iskren Chernev Date: Wed, 1 Oct 2014 08:16:09 +0000 (-0700) Subject: Fix preparse for Arabic X-Git-Tag: 2.8.4~31^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1951%2Fhead;p=thirdparty%2Fmoment.git Fix preparse for Arabic --- diff --git a/locale/ar-sa.js b/locale/ar-sa.js index f7867eacf..8420c5bce 100644 --- a/locale/ar-sa.js +++ b/locale/ar-sa.js @@ -79,7 +79,7 @@ yy : '%d سنوات' }, preparse: function (string) { - return string.replace(/[۰-۹]/g, function (match) { + return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) { return numberMap[match]; }).replace(/،/g, ','); }, diff --git a/locale/ar.js b/locale/ar.js index 1791a6b39..8af3b9f80 100644 --- a/locale/ar.js +++ b/locale/ar.js @@ -112,7 +112,7 @@ yy : pluralize('y') }, preparse: function (string) { - return string.replace(/[۰-۹]/g, function (match) { + return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) { return numberMap[match]; }).replace(/،/g, ','); },