-
- Laravel Mix Version: 4.0.14 (`npm list --depth=0`)
- Node Version (`node -v`): v14.19.3
- NPM Version (`npm -v`): 8.11.0
- OS: Windows 10 Pro
-
"laravel-mix": "^4.0.14",
### De…
-
**Describe the bug**
Properties of an object are considered `undefined` unless set, but an explicit `undefined` value is taken into consideration when determining if `isInt` or `isFloat` succeeds due…
-
https://github.com/validatorjs/validator.js/blob/b958bd7d1026a434ad3bf90064d3dcb8b775f1a9/src/lib/isMobilePhone.js#L95C26-L95C26
I think this part of this pattern is wrong:
![image](https://github…
-
Currently, there are different ways to define optional parameters.
Many take one options object for these, but some have special string parameters like isIP, which has version. Other combine the two …
-
Hi all,
Inspired by the discussion in one of the PR here (https://github.com/validatorjs/validator.js/pull/2109#discussion_r1039621015), I am opening up this separate issue:
Currently the isMobi…
-
It would be great if the `import/no-extraneous-dependencies` rule could be ignored project wide but only for certain dependencies.
`import/no-unresolved` already has this functionality with it's `i…
-
**Describe the bug**
Since v13.11.0 `isDate` throws when passing a non-valid string with a format.
v13.9.0 works wonders.
**Examples**
`isDate('20', { format: 'DD/MM/YYYY' })`
https://run…
-
Is it possible to get error messages? When an object doesn't pass validation I would like to get errors messages to display, for example:
``` javascript
var rules = {
name: [ new Validator.Assert…
-
**Describe the bug**
When I add 0 in front of a port string, just like ‘00065535’,I expect false,but the function return true.
**Examples**
```
validator.isPort('0001');
validator.isURL('https:…
-
I need to invalidate the form on mount. Calling this.props.validate in componentDidMount return an invariant error.
`Invariant Violation: Data was not provided to the Validator. Implement "getValidat…