Skip to content

Commit ec5df24

Browse files
committed
Enable email and regex validators
1 parent 7352758 commit ec5df24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/validate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
// Add validator names here
3-
const validators = ['type', 'length', 'value', 'func', 'model', 'date'];
3+
const validators = ['type', 'length', 'value', 'func', 'model', 'date', 'email', 'regex'];
44

55
// Turn validator names to validator instances.
66
for (let i = 0; i < validators.length; i++) {

0 commit comments

Comments
 (0)