From 891cd11d6ca197b32dd1e5d710a26991a261b5ac Mon Sep 17 00:00:00 2001 From: Nicco Date: Sat, 28 Sep 2019 19:19:48 +0200 Subject: [PATCH] Update README.md --- README.md | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index cb61cb7..d6168e5 100644 --- a/README.md +++ b/README.md @@ -194,16 +194,17 @@ const validators = { ```javascript const validators = { - username: [{ - validator: /^[A-z]*$/, - message: 'My custom error message', - }, - /[\d]/, - async (value) => value.length > 0, - { - validator: (value) => true, - message: 'Some other error', - } + username: [ + { + validator: /^[A-z]*$/, + message: 'My custom error message', + }, + /[\d]/, + async (value) => value.length > 0, + { + validator: (value) => true, + message: 'Some other error', + } ] } ```