]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Correction: Style of comment!
authorTGJG-XPS\TracyG <tracyg.gilmore@gmail.com>
Mon, 13 Feb 2017 21:09:54 +0000 (21:09 +0000)
committerIskren Chernev <iskren.chernev@gmail.com>
Sun, 12 Mar 2017 00:11:46 +0000 (02:11 +0200)
src/lib/create/from-string.js

index 83dfb733228372ce587f7739e3bd411f62be7a20..c07481ae04ebefd9af87f88767c9a2240b508052 100644 (file)
@@ -160,9 +160,7 @@ export function configFromRFC2822(config) {
         dateFormat = 'D MMM ' + ((match[2].length > 10) ? 'YYYY ' : 'YY ');
         timeFormat = 'HH:mm' + (match[4] ? ':ss' : '');
 
-        // 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.
-        /* */
+        // TODO: Replace the vanilla JS Date object with an indepentent day-of-week check.
         if (match[1]) { // day of week given
             var momentDate = new Date(match[2]);
             var momentDay = ['Sun','Mon','Tue','Wed','Thu','Fri','Sat'][momentDate.getDay()];
@@ -172,7 +170,6 @@ export function configFromRFC2822(config) {
                 return;
             }
         }
-        /* */
         getParsingFlags(config).rfc2822 = true;
 
         switch (match[5].length) {