]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
[bugfix] Fix #4334: Remove unused function call argument (#4336)
authorAsh <ash@hexmen.com>
Mon, 11 Dec 2017 00:23:25 +0000 (00:23 +0000)
committerKunal Marwaha <marwahaha@berkeley.edu>
Mon, 11 Dec 2017 00:26:07 +0000 (19:26 -0500)
src/lib/units/day-of-month.js

index 02532534e96c0c32eb7fa7a1c5c8210be0a20d7a..0e4a02e1e8a97d6ca45aed30e16d0be0f4cf95a0 100644 (file)
@@ -31,7 +31,7 @@ addRegexToken('Do', function (isStrict, locale) {
 
 addParseToken(['D', 'DD'], DATE);
 addParseToken('Do', function (input, array) {
-    array[DATE] = toInt(input.match(match1to2)[0], 10);
+    array[DATE] = toInt(input.match(match1to2)[0]);
 });
 
 // MOMENTS