From: TGJG-XPS\TracyG Date: Tue, 14 Feb 2017 17:44:31 +0000 (+0000) Subject: Style correction. X-Git-Tag: 2.18.0~12^2~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de40da562767e68ef74c57c15a43098eedc5875d;p=thirdparty%2Fmoment.git Style correction. --- diff --git a/src/lib/create/from-string.js b/src/lib/create/from-string.js index 842bd3b4b..961dbe242 100644 --- a/src/lib/create/from-string.js +++ b/src/lib/create/from-string.js @@ -165,7 +165,7 @@ export function configFromRFC2822(config) { if (match[1]) { // day of week given var momentDate = new Date(match[2]); var momentDay = ['Sun','Mon','Tue','Wed','Thu','Fri','Sat'][momentDate.getDay()]; - + if (match[1].substr(0,3) !== momentDay) { getParsingFlags(config).weekdayMismatch = true; config._isValid = false;