diff options
Diffstat (limited to 'node_modules/moment/src/lib/units')
-rw-r--r-- | node_modules/moment/src/lib/units/day-of-month.js | 4 | ||||
-rw-r--r-- | node_modules/moment/src/lib/units/day-of-week.js | 6 | ||||
-rw-r--r-- | node_modules/moment/src/lib/units/hour.js | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/node_modules/moment/src/lib/units/day-of-month.js b/node_modules/moment/src/lib/units/day-of-month.js index 02532534e..cbd1e40ba 100644 --- a/node_modules/moment/src/lib/units/day-of-month.js +++ b/node_modules/moment/src/lib/units/day-of-month.js @@ -15,7 +15,7 @@ addFormatToken('D', ['DD', 2], 'Do', 'date'); addUnitAlias('date', 'D'); -// PRIOROITY +// PRIORITY addUnitPriority('date', 9); // PARSING @@ -31,7 +31,7 @@ addRegexToken('Do', function (isStrict, locale) { addParseToken(['D', 'DD'], DATE); addParseToken('Do', function (input, array) { - array[DATE] = toInt(input.match(match1to2)[0], 10); + array[DATE] = toInt(input.match(match1to2)[0]); }); // MOMENTS diff --git a/node_modules/moment/src/lib/units/day-of-week.js b/node_modules/moment/src/lib/units/day-of-week.js index 55027608d..438160b87 100644 --- a/node_modules/moment/src/lib/units/day-of-week.js +++ b/node_modules/moment/src/lib/units/day-of-week.js @@ -200,9 +200,9 @@ export function localeWeekdaysParse (weekdayName, format, strict) { mom = createUTC([2000, 1]).day(i); if (strict && !this._fullWeekdaysParse[i]) { - this._fullWeekdaysParse[i] = new RegExp('^' + this.weekdays(mom, '').replace('.', '\.?') + '$', 'i'); - this._shortWeekdaysParse[i] = new RegExp('^' + this.weekdaysShort(mom, '').replace('.', '\.?') + '$', 'i'); - this._minWeekdaysParse[i] = new RegExp('^' + this.weekdaysMin(mom, '').replace('.', '\.?') + '$', 'i'); + this._fullWeekdaysParse[i] = new RegExp('^' + this.weekdays(mom, '').replace('.', '\\.?') + '$', 'i'); + this._shortWeekdaysParse[i] = new RegExp('^' + this.weekdaysShort(mom, '').replace('.', '\\.?') + '$', 'i'); + this._minWeekdaysParse[i] = new RegExp('^' + this.weekdaysMin(mom, '').replace('.', '\\.?') + '$', 'i'); } if (!this._weekdaysParse[i]) { regex = '^' + this.weekdays(mom, '') + '|^' + this.weekdaysShort(mom, '') + '|^' + this.weekdaysMin(mom, ''); diff --git a/node_modules/moment/src/lib/units/hour.js b/node_modules/moment/src/lib/units/hour.js index ef7586803..d717a7999 100644 --- a/node_modules/moment/src/lib/units/hour.js +++ b/node_modules/moment/src/lib/units/hour.js @@ -138,7 +138,7 @@ export function localeMeridiem (hours, minutes, isLower) { // MOMENTS // Setting the hour should keep the time, because the user explicitly -// specified which hour he wants. So trying to maintain the same hour (in +// specified which hour they want. So trying to maintain the same hour (in // a new timezone) makes sense. Adding/subtracting hours does not follow // this rule. export var getSetHour = makeGetSet('Hours', true); |