diff options
Diffstat (limited to 'node_modules/moment/moment.js')
-rw-r--r-- | node_modules/moment/moment.js | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/node_modules/moment/moment.js b/node_modules/moment/moment.js index 1704b2ab9..9dd31d136 100644 --- a/node_modules/moment/moment.js +++ b/node_modules/moment/moment.js @@ -1,5 +1,5 @@ //! moment.js -//! version : 2.19.1 +//! version : 2.19.3 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com @@ -659,7 +659,7 @@ var matchTimestamp = /[+-]?\d+(\.\d{1,3})?/; // 123456789 123456789.123 // any word (or two) characters or numbers including two/three word month in arabic. // includes scottish gaelic two word and hyphenated months -var matchWord = /[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i; +var matchWord = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i; var regexes = {}; @@ -814,7 +814,7 @@ function get (mom, unit) { function set$1 (mom, unit, value) { if (mom.isValid() && !isNaN(value)) { - if (unit === 'FullYear' && isLeapYear(mom.year())) { + if (unit === 'FullYear' && isLeapYear(mom.year()) && mom.month() === 1 && mom.date() === 29) { mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value, mom.month(), daysInMonth(value, mom.month())); } else { @@ -1920,10 +1920,11 @@ function defineLocale (name, config) { function updateLocale(name, config) { if (config != null) { - var locale, parentConfig = baseConfig; + var locale, tmpLocale, parentConfig = baseConfig; // MERGE - if (locales[name] != null) { - parentConfig = locales[name]._config; + tmpLocale = loadLocale(name); + if (tmpLocale != null) { + parentConfig = tmpLocale._config; } config = mergeConfigs(parentConfig, config); locale = new Locale(config); @@ -4477,7 +4478,7 @@ addParseToken('x', function (input, array, config) { // Side effect imports -hooks.version = '2.19.1'; +hooks.version = '2.19.3'; setHookCallback(createLocal); |