-
after and after_or_equal rules expect params val and req. They actually receive val1, val2 and req.
Date comparisons should be based on val1 and val2.
https://github.com/skaterdav85/validatorjs/blob…
-
This is a fresh take at #1261
Re-posting my initial thoughts:
So, **a rewrite is out of question**. Looks like viable proposals we have right now are:
1) Add types alongside the library (for…
-
If you have multiple forms instantiated, custom DVR rules registered, and if you pass in form instance to the rules, once validation kicks in, rules will receive invalid form instance. E.g. they will …
-
This is probably related to: https://github.com/skaterdav85/validatorjs/issues/215
If you try to validate an empty array with the `min` rule, it passes instead of returning error. Doing some revers…
-
**isDate returns false for all strings**
isDate is always returning false, even for correctly formatted strings.
**Examples**
validator.isDate('2024-01-01', { format: 'YYYY-MM-DD', delimiters: …
-
I know how to set custom attribute names for an instance of validator but I want to know is it possible to set them globally? (i need something like below):
`var validator = require('validatorjs');
…
-
Using the rule 'digits:5' as part of validating zip codes. When testing, the rule allows for spaces in the zip code, which it shouldn't. For example ` 9980` passes validation.
-
@WikiRik
I suggest having validation on the parameter algorithm in the **isHash** function.
The behavior below is not appropriate. The user of validator.js should get a proper error message. [Good …
-
https://github.com/validatorjs/validator.js/blob/bab507ad4a33156ece15582268b2fe0ab3bbca1d/src/lib/isSlug.js#L3
This regex does not invalidate slugs that start with a special character. For example,…
-
### Environment info
**Validatorjs version**: 3.22.1
**Node.js version**: v12.18.3
### Problem
I need the same functionality of issue #345, I want check in my database if the new value is un…