fix: validation error in date params
This commit is contained in:
@@ -136,7 +136,7 @@ const nextConfig = {
|
||||
{
|
||||
key: "fromDate",
|
||||
type: "query",
|
||||
value: "^([12]\\d{3}-(0[1-9]|1[0-2])-([1-9]|[12]\\d|3[01]))$",
|
||||
value: "^([12]\\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01]))$",
|
||||
},
|
||||
],
|
||||
permanent: false,
|
||||
@@ -168,7 +168,7 @@ const nextConfig = {
|
||||
{
|
||||
key: "toDate",
|
||||
type: "query",
|
||||
value: "^([12]\\d{3}-(0[1-9]|1[0-2])-([1-9]|[12]\\d|3[01]))$",
|
||||
value: "^([12]\\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01]))$",
|
||||
},
|
||||
],
|
||||
permanent: false,
|
||||
|
||||
Reference in New Issue
Block a user