validatorjs icon indicating copy to clipboard operation
validatorjs copied to clipboard

NPM Version 3.13.3

Open gpltaylor opened this issue 7 years ago • 3 comments

I am trying to pull down the latest NPM (3.13.3) due to the bug in the rules.js for Month (date not valid for value: 2017-10-31).

When I pull this down, I'm expecting to get the latest version, with the fix. https://github.com/skaterdav85/validatorjs/commit/96796f5bb0248bb7d180e3f761f9a097cafeb082

However, the code does not include the latest fix? I have also noticed that there is no tag or version for 3.13.3.

gpltaylor avatar Jun 08 '17 13:06 gpltaylor

NOTE: I have tried to test this on the NPM RunKit and get the same issue.


var validation = new validatorjs({
    dateofbirth: '2017-10-31'
}, {
    dateofbirth: 'required|date'
});
 
validation.passes();
validation.errors.get('dateofbirth');

Array (1 item) 0: "The dateofbirth is not a valid date format" length: 1

gpltaylor avatar Jun 08 '17 13:06 gpltaylor

@gpltaylor This is a known issue and will be addressed soon (will be addressing this and other issues over the weekend)

mikeerickson avatar Jun 08 '17 13:06 mikeerickson

Thank you

gpltaylor avatar Jun 08 '17 13:06 gpltaylor