New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

toInt excepts 1 argument, 2 given #4334

Closed
marcin-derlukiewicz opened this Issue Nov 30, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@marcin-derlukiewicz

marcin-derlukiewicz commented Nov 30, 2017

static analysis (sonarqube) in my project claims that this line has error

moment/moment.js

Line 3669 in 4caa268

array[DATE] = toInt(input.match(match1to2)[0], 10);

because toInt accepts only one argument

on the other hand code appears to be working
moment("12th January of 2017", "Do MMMM of YYYY").format("Mo Do Yo")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment