validatorjs icon indicating copy to clipboard operation
validatorjs copied to clipboard

A data validation library in JavaScript for the browser and Node.js, inspired by Laravel's Validator.

Results 91 validatorjs issues
Sort by recently updated
recently updated
newest added

Hi, thanks a lot for an awesome library. I suppose I have found an inconstancy, here what it is: ```javascript var values = { persons: [ { firstName: 'Viktor' }...

Hi, i'm trying to validate an ip adress, and i'm using a regexp type of rule. But i get an error: `Uncaught SyntaxError: Invalid regular expression: /^(25[0-5/: Unterminated character class.`...

In version 3.22.1, when using the [provided example](https://www.npmjs.com/package/validatorjs/v/3.21.1) for creating custom attributes the `:min` and `:max` parameters are not returned. In doing a little investigation version 3.22.1 seems to be...

Hi there. Using v3.22.1 and it seems we can't validate the values of unknown object keys? e.g. **Input:** ```json { "yourFriendsNamesAndAges": { "fred": "invalid-must-be-a-number", "simon": 55 } } ``` **Validator:**...

Make first email regex support UTF-8 algorithm Old : If pass regex 1 return function will run regex again Edit : If pass regex 1 return

Prior to this change, if the `sometimes` rule was present on a nested property like so... ```js let rules = { 'user.firstname': 'sometimes|required|string', ... } ``` ...the check to determine...

Hey there! I'd like to report a security issue but cannot find contact instructions on your repository. If not a hassle, might you kindly add a `SECURITY.md` file with an...

signatureImageId: { name: 'required_if:isSignatory,true', type: [ 'required_if:isSignatory,true', 'regex:/(\\jpeg|\\png|\\jpg)$/i', ], size: 'required_if:isSignatory,true|between:0,4096', },

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.

Is there any way we can reset this form even after it invalidates a number of fields?