]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Forgot to add moment.js changes related to 48c742c
authorIskren Chernev <iskren.chernev@gmail.com>
Wed, 2 Oct 2013 08:59:09 +0000 (12:59 +0400)
committerIskren Chernev <iskren.chernev@gmail.com>
Wed, 2 Oct 2013 08:59:09 +0000 (12:59 +0400)
moment.js

index b050c4b0aa886e64c296033f7145aaeec7331e6a..af9c7aeb29db4eb8bc98960c0a401bfe1e48032d 100644 (file)
--- a/moment.js
+++ b/moment.js
             sign = (match[1] === "-") ? -1 : 1;
             duration = {
                 y: 0,
-                d: toInt(matched[2]) * sign,
-                h: toInt(matched[3]) * sign,
-                m: toInt(matched[4]) * sign,
-                s: toInt(matched[5]) * sign,
-                ms: toInt(matched[6]) * sign
+                d: toInt(match[2]) * sign,
+                h: toInt(match[3]) * sign,
+                m: toInt(match[4]) * sign,
+                s: toInt(match[5]) * sign,
+                ms: toInt(match[6]) * sign
             };
         } else if (!!(match = isoDurationRegex.exec(input))) {
             sign = (match[1] === "-") ? -1 : 1;