You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-5Lines changed: 8 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ This library contains common validators that may be used in Orchejs projects. It
10
10
11
11
This project is divided in two kinds of validators: Global and Local. The first one comprises common validators, which means, anything that are not from a specific country or region. Examples of global validators are email, not null and length checkers. Local validators are anything that belongs to a specific country like zip code, documents as ID cards and so on.
12
12
13
-
The idea here is to make a public repository that may grow with the community contribution. So if you need a validator that does not exists here, please open a PR and help us to improve it. For contributions, please check the [contributions]() topic.
13
+
The idea here is to make a public repository that may grow with the community contribution. So if you need a validator that does not exists here, please open a PR and help us to improve it. For contributions, please check the [contributions](#con) topic.
14
14
15
15
-------
16
16
## Topics
@@ -22,7 +22,7 @@ The idea here is to make a public repository that may grow with the community co
22
22
-[Contributing](#con)
23
23
-[License](#lic)
24
24
25
-
## <aname="#huo"></a> How to use it in Orchejs
25
+
## <aname="huo"></a> How to use it in Orchejs
26
26
27
27
### How to install?
28
28
@@ -302,7 +302,7 @@ specific country validation, please take a look at [Implementing new Validators]
302
302
303
303
## <aname="inv"></a> Implementing new Validators
304
304
305
-
To implement a new validator to use in your project, you should implement the Validator interface.
305
+
To create a new validator to your project, you should implement the Validator interface.
306
306
307
307
All validation rules must be inside of the validate method. For example:
**Important**: Avoid to use external libraries, except those that are pretty generic like lodash or momentjs. The reason is to avoid excessive dependencies to the project, which may result in more bugs.
342
+
**Important**: Avoid to use external libraries, except those that are pretty generic like lodash or
343
+
momentjs. This is for keeping away from excessive dependencies as it could result in bugs.
343
344
344
345
### Share to the community
345
346
346
-
If you think that your validator can be used by others, please consider sharing to the communit. The first thing is to open an [issue](https://github.com/orchejs/validators/issues/new) and after being accepted, submit your Pull Request.
347
+
If you think that your validator can be used by others, please consider sharing to the communit.
348
+
The first thing is to open an [issue](https://github.com/orchejs/validators/issues/new) and after
349
+
being accepted, submit your Pull Request.
347
350
348
351
Don't forget to take a look at the [contribution guidelines](#con).
0 commit comments