Skip to content

Commit

Permalink
feat: adding alias to regex
Browse files Browse the repository at this point in the history
  • Loading branch information
yUnreal committed May 20, 2024
1 parent 97d816f commit 7a51c84
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/structs/Schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,8 @@ export class Schema<Shape extends AnyObject> {
public static regex() {
return new RegexSchemaKey({ type: SchemaTypes.RegExp });
}

public static pattern() {
return Schema.regex();
}
}

0 comments on commit 7a51c84

Please sign in to comment.