aboutsummaryrefslogtreecommitdiff
path: root/node_modules/moment/src/locale/es.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/moment/src/locale/es.js')
-rw-r--r--node_modules/moment/src/locale/es.js12
1 files changed, 10 insertions, 2 deletions
diff --git a/node_modules/moment/src/locale/es.js b/node_modules/moment/src/locale/es.js
index 78607eae2..a058d369e 100644
--- a/node_modules/moment/src/locale/es.js
+++ b/node_modules/moment/src/locale/es.js
@@ -7,6 +7,9 @@ import moment from '../moment';
var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
+var monthsParse = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i];
+var monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
+
export default moment.defineLocale('es', {
months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
monthsShort : function (m, format) {
@@ -18,7 +21,13 @@ export default moment.defineLocale('es', {
return monthsShortDot[m.month()];
}
},
- monthsParseExact : true,
+ monthsRegex : monthsRegex,
+ monthsShortRegex : monthsRegex,
+ monthsStrictRegex : /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
+ monthsShortStrictRegex : /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
+ monthsParse : monthsParse,
+ longMonthsParse : monthsParse,
+ shortMonthsParse : monthsParse,
weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'),
@@ -71,4 +80,3 @@ export default moment.defineLocale('es', {
doy : 4 // The week that contains Jan 4th is the first week of the year.
}
});
-