Skip to content

Commit

Permalink
Adds maxLength to pattern schema
Browse files Browse the repository at this point in the history
  • Loading branch information
TinaHeiligers committed Nov 15, 2024
1 parent 0491850 commit ebf8161
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,6 @@ function validateTimezone(timezone: string) {
}

function validate(rawString: string) {
if (rawString.length > 1000) {
throw new Error(`Date input too long, given ${rawString.length}`);
}

for (const matched of rawString.matchAll(dateRegExp)) {
const { format, timezone } = matched.groups!;

Expand Down

0 comments on commit ebf8161

Please sign in to comment.