Skip to content

Commit

Permalink
update README and RELEASE
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeerickson committed Aug 18, 2020
1 parent 19d3081 commit 8b10ef7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,10 @@ This library was inspired by the [Laravel framework's Validator](http://laravel.

## Important Notice - New Source Repository


Please visit the following [repository](https://github.com/mikeerickson/validatorjs) as it will be current moving forward as we are the sole maintainers of this project

## Why use validatorjs

## Why use validatorjs?

* Not dependent on any libraries.
* Works in both the browser and Node.
* Readable and declarative validation rules.
* Error messages with multilingual support.
Expand Down Expand Up @@ -212,7 +209,6 @@ The field under validation must be an array.

The field under validation must be before the given date.


#### before_or_equal:date

The field under validation must be before or equal to the given date.
Expand Down Expand Up @@ -250,6 +246,7 @@ The given field must be different than the field under validation.
The field under validation must be formatted as an e-mail address.

#### hex

The field under validation should be a hexadecimal format. Useful in combination with other rules, like `hex|size:6` for hex color code validation.

#### in:foo,bar,...
Expand Down Expand Up @@ -281,6 +278,7 @@ The field under validation must not be included in the given list of values.
Validate that an attribute is numeric. The string representation of a number will pass.

#### present

The field under validation must be present in the input data but can be empty.

#### required
Expand Down Expand Up @@ -407,9 +405,9 @@ Then call your validator using `checkAsync` passing `fails` and `passes` callbac

```js
let validator = new Validator({
username: 'test123'
username: 'test123'
}, {
username: 'required|min:3|username_available'
username: 'required|min:3|username_available'
});

function passes() {
Expand Down Expand Up @@ -610,4 +608,4 @@ E-Mail: [codedungeon@gmail.com](mailto:codedungeon@gmail.com)

Twitter: [@codedungeon](http://twitter.com/codedungeon)

Website: [codedungeon.io](http://codedungeon.io)
Website: [codedungeon.io](http://codedungeon.io)
2 changes: 1 addition & 1 deletion RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# validatorjs

[Version 3.19] -- 2019.12.xx
[Version 3.19] -- 20202.08.14

## Added

Expand Down

0 comments on commit 8b10ef7

Please sign in to comment.