From: Vadim Borodean Date: Mon, 22 Jul 2013 00:44:19 +0000 (+0300) Subject: Fixed May abbr accusative ending X-Git-Tag: 2.2.0~6^2~2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F942%2Fhead;p=thirdparty%2Fmoment.git Fixed May abbr accusative ending --- diff --git a/lang/ru.js b/lang/ru.js index dfc238df3..46e4f0308 100644 --- a/lang/ru.js +++ b/lang/ru.js @@ -40,7 +40,7 @@ function monthsCaseReplace(m, format) { function monthsShortCaseReplace(m, format) { var monthsShort = { 'nominative': 'янв_фев_мар_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split('_'), - 'accusative': 'янв_фев_мар_апр_май_июня_июля_авг_сен_окт_ноя_дек'.split('_') + 'accusative': 'янв_фев_мар_апр_мая_июня_июля_авг_сен_окт_ноя_дек'.split('_') }, nounCase = (/D[oD]? *MMMM?/).test(format) ? diff --git a/test/lang/ru.js b/test/lang/ru.js index dfed0cdba..703337fe3 100644 --- a/test/lang/ru.js +++ b/test/lang/ru.js @@ -141,7 +141,7 @@ exports["lang:ru"] = { var monthsShort = { 'nominative': 'янв_фев_мар_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split('_'), - 'accusative': 'янв_фев_мар_апр_май_июня_июля_авг_сен_окт_ноя_дек'.split('_') + 'accusative': 'янв_фев_мар_апр_мая_июня_июля_авг_сен_окт_ноя_дек'.split('_') }, i; for (i = 0; i < 12; i++) { test.equal(moment([2011, i, 1]).format('D MMM'), '1 ' + monthsShort.accusative[i], '1 ' + monthsShort.accusative[i]);