Skip to content

Commit

Permalink
fix(types): make StringSchema.matches options optional (#1166)
Browse files Browse the repository at this point in the history
The second parameter to matches() should be optional.
  • Loading branch information
bespokebob authored Dec 10, 2020
1 parent 3ca0ebf commit b53e5f2
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 b53e5f2

Please sign in to comment.