aboutsummaryrefslogtreecommitdiff
path: root/node_modules/moment/src/lib/units
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2018-09-20 02:56:13 +0200
committerFlorian Dold <florian.dold@gmail.com>2018-09-20 02:56:13 +0200
commitbbff7403fbf46f9ad92240ac213df8d30ef31b64 (patch)
treec58400ec5124da1c7d56b01aea83309f80a56c3b /node_modules/moment/src/lib/units
parent003fb34971cf63466184351b4db5f7c67df4f444 (diff)
update packages
Diffstat (limited to 'node_modules/moment/src/lib/units')
-rw-r--r--node_modules/moment/src/lib/units/day-of-month.js4
-rw-r--r--node_modules/moment/src/lib/units/day-of-week.js6
-rw-r--r--node_modules/moment/src/lib/units/hour.js2
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);