]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
changing back to RegExp.exec
authorNicholas Bollweg <nicholas.bollweg@gtri.gatech.edu>
Wed, 14 Aug 2013 14:49:01 +0000 (10:49 -0400)
committerNicholas Bollweg <nicholas.bollweg@gtri.gatech.edu>
Wed, 14 Aug 2013 14:49:01 +0000 (10:49 -0400)
moment.js

index 44dc9c47ec91cca8ca7f364717113816cea29e5b..63c9252ccf02abe74ca8cd4928ffdfc1cd9f41cb 100644 (file)
--- a/moment.js
+++ b/moment.js
                 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]);