summaryrefslogtreecommitdiff
path: root/www/lib/moment/src/locale/ar.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/lib/moment/src/locale/ar.js')
-rw-r--r--www/lib/moment/src/locale/ar.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/www/lib/moment/src/locale/ar.js b/www/lib/moment/src/locale/ar.js
index d3a5bfcc..689bc8f6 100644
--- a/www/lib/moment/src/locale/ar.js
+++ b/www/lib/moment/src/locale/ar.js
@@ -70,7 +70,7 @@ export default moment.defineLocale('ar', {
longDateFormat : {
LT : 'HH:mm',
LTS : 'HH:mm:ss',
- L : 'DD/MM/YYYY',
+ L : 'D/\u200FM/\u200FYYYY',
LL : 'D MMMM YYYY',
LLL : 'D MMMM YYYY LT',
LLLL : 'dddd D MMMM YYYY LT'
@@ -110,7 +110,7 @@ export default moment.defineLocale('ar', {
yy : pluralize('y')
},
preparse: function (string) {
- return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
+ return string.replace(/\u200f/g, '').replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
return numberMap[match];
}).replace(/،/g, ',');
},