From: Iskren Chernev Date: Thu, 31 Dec 2015 09:57:52 +0000 (+0200) Subject: Fix ISO matching for IE8 X-Git-Tag: 2.11.0~7^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57e26cded75e689ddda442b799416d4a9befac11;p=thirdparty%2Fmoment.git Fix ISO matching for IE8 --- diff --git a/src/lib/create/from-string.js b/src/lib/create/from-string.js index 6476457e8..6852049f2 100644 --- a/src/lib/create/from-string.js +++ b/src/lib/create/from-string.js @@ -61,7 +61,7 @@ export function configFromISO(config) { config._isValid = false; return; } - if (match[3] != null) { + if (match[3]) { for (i = 0, l = isoTimes.length; i < l; i++) { if (isoTimes[i][1].exec(match[3])) { // match[2] should be 'T' or space @@ -78,7 +78,7 @@ export function configFromISO(config) { config._isValid = false; return; } - if (match[4] != null) { + if (match[4]) { if (tzRegex.exec(match[4])) { tzFormat = 'Z'; } else {