From: Iskren Chernev Date: Tue, 17 Sep 2013 07:51:27 +0000 (-0700) Subject: Parsing with array and strict parsing now play nicely X-Git-Tag: 2.3.0~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b10a233e5b1fc38373dea07cf64498cd6e20ce6f;p=thirdparty%2Fmoment.git Parsing with array and strict parsing now play nicely --- diff --git a/moment.js b/moment.js index f04afcdf3..c6d7222bc 100644 --- a/moment.js +++ b/moment.js @@ -1080,7 +1080,7 @@ currentScore = compareArrays(tempConfig._a, tempMoment.toArray()); // if there is any input that was not parsed // add a penalty for that format - currentScore += tempMoment._il; + currentScore += tempMoment._il || 0; if (currentScore < scoreToBeat) { scoreToBeat = currentScore;