From 8cf6694dc2c0d4a76dc49b579ab14bcc72f98cb6 Mon Sep 17 00:00:00 2001 From: Bob Thomas Date: Thu, 10 Dec 2020 10:39:42 -0500 Subject: [PATCH] Make StringSchema.matches options optional The second parameter to matches() should be optional. --- src/string.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/string.ts b/src/string.ts index ca46393d8..1eba8d0d5 100644 --- a/src/string.ts +++ b/src/string.ts @@ -105,7 +105,7 @@ export default class StringSchema< }); } - matches(regex: RegExp, options: MatchOptions | MatchOptions['message']) { + matches(regex: RegExp, options?: MatchOptions | MatchOptions['message']) { let excludeEmptyString = false; let message; let name;