// TODO Confirm the given day-of-week is consistent with the day-of-month-year
// NB: Needs an instance of moment, created from the date element of the input string.
+ /*
if (match[1]) { // day of week given
console.log('[' + match[1].substr(0,3) + ']', moment(match[2], dateFormat).format('ddd'));
var momentDay = moment(match[2], dateFormat).format('ddd');
return;
}
}
-
+ */
getParsingFlags(config).rfc2822 = true;
switch (match[5].length) {
test('non RFC 2822 strings', function (assert) {
assert.ok(!moment('Tue. 01 Nov 2016 01:23:45 GMT', moment.RFC_2822, true).isValid(),
'RFC2822 datetime with all options but invalid day delimiter');
- /* */
+ /* TODO Confirm the given day-of-week is consistent with the day-of-month-year
assert.ok(!moment('Mon, 01 Nov 2016 01:23:45 GMT', moment.RFC_2822, true).isValid(),
'RFC2822 datetime with mismatching Day (week v date)');
- /* */
+ */
});
test('parsing iso', function (assert) {