From: Nicholas Bollweg Date: Wed, 14 Aug 2013 14:49:01 +0000 (-0400) Subject: changing back to RegExp.exec X-Git-Tag: 2.3.0~10^2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c205e9cef3c18c220595f49fe61775dbda52e888;p=thirdparty%2Fmoment.git changing back to RegExp.exec --- diff --git a/moment.js b/moment.js index 44dc9c47e..63c9252cc 100644 --- a/moment.js +++ b/moment.js @@ -1081,7 +1081,7 @@ s: ~~aspMatched[5] * sign, ms: ~~aspMatched[6] * sign }; - } else if (!!(isoMatched = input.match(isoDurationRegex))) { + } else if (!!(isoMatched = isoDurationRegex.exec(input))) { timeEmpty = !(isoMatched[6] || isoMatched[7] || isoMatched[8]); dateTimeEmpty = timeEmpty && !(isoMatched[2] || isoMatched[3] || isoMatched[4]);