From 5489f335649c3f87fccc7bf5c31b0c72d9b3664c Mon Sep 17 00:00:00 2001 From: Fulvio Gentile Date: Thu, 7 May 2020 22:16:11 +0200 Subject: [PATCH] Update readme.md Co-authored-by: Sindre Sorhus --- readme.md | 1 + 1 file changed, 1 insertion(+) diff --git a/readme.md b/readme.md index 32a2a10..6d966f8 100644 --- a/readme.md +++ b/readme.md @@ -257,6 +257,7 @@ It's also possible to add a separate message per validation: ```ts ow('1234', ow.string.minLength(5).message((value, label) => `Expected ${label}, to be have a minimum length of 5, got \`${value}\``).url.message('This is no url')); //=> ArgumentError: Expected string, to be have a minimum length of 5, got `1234` + ow('12345', ow.string.minLength(5).message((value, label) => `Expected ${label}, to be have a minimum length of 5, got \`${value}\``).url.message('This is no url')); //=> ArgumentError: This is no url ```