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', + } ] } ```