Skip to content

Commit b53e5f2

Browse files
authored
fix(types): make StringSchema.matches options optional (#1166)
The second parameter to matches() should be optional.
1 parent 3ca0ebf commit b53e5f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/string.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export default class StringSchema<
105105
});
106106
}
107107

108-
matches(regex: RegExp, options: MatchOptions | MatchOptions['message']) {
108+
matches(regex: RegExp, options?: MatchOptions | MatchOptions['message']) {
109109
let excludeEmptyString = false;
110110
let message;
111111
let name;

0 commit comments

Comments
 (0)