-
There is no way to write a test which accepts only Arrays including empty array. also your unit tests for custom tests arent reflective of this case:
```js
var Validator = require('validatorjs');
…
-
The performed check is overly stringent (and sometimes wrong) regarding the accepted formats. The following illustrates two cases derived from [this site](https://www.freeformatter.com/credit-card-nu…
-
We're currently not sure if all of our credit card issuer patterns are valid patterns. We should check them with validator.js.
-
Currently the options for isLength are `min` and `max` only.
I believe there could be more options. I'm needing the field size to be exactly 11 or 14 or 16.
For now I'm using `min` 11 and `max` 16 b…
-
```
Validator.register('fail_array', function(value, requirement, attribute) {
return false;
}, ':attribute Failed');
var fields = {attr: []}
var rules = {attr: 'fail_array'}
new Validator(fields…
-
**Describe the bug**
I'm running the latest version of the library and `isMobilePhone` is not defined. I imported the validator functions as so:
```js
import isEmail from "validator/lib/isEmail.j…
-
I have an array of boolean.
How to validate.
var data = {
status_array: [true, false, true, false]
}
var rules = {
"status_array": "array|in:true,false",
}
Please Help…
-
**Describe the bug**
We noticed some user on our product trying to SQL inject via the email input which we server side validated via `isEmail` and the emails were passing 😅
**Examples**
```
…
-
I do not know if this is doable currently. I could not find any doc for this. I want the validator to stop immediately when a rule for an attribute fails. It seems the validator continues to execute a…
-
I would find this particularly useful in dominar.js as I need to determine what data to pass to validator js from the form (in the case of the `confirmed` and `same` rule) -- I manually have to parse …