Skip to content

Commit

Permalink
Make StringSchema.matches options optional
Browse files Browse the repository at this point in the history
The second parameter to matches() should be optional.
  • Loading branch information
bespokebob committed Dec 10, 2020
1 parent 3ca0ebf commit 8cf6694
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/string.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8cf6694

Please sign in to comment.