fix(SW-449): Updated next.config date rule
This commit is contained in:
@@ -137,7 +137,7 @@ const nextConfig = {
|
||||
{
|
||||
key: "fromDate",
|
||||
type: "query",
|
||||
value: "^([12]\\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01]))$",
|
||||
value: "^([12]\\d{3}-(0[1-9]|1[0-2])-([1-9]|[12]\\d|3[01]))$",
|
||||
},
|
||||
],
|
||||
permanent: false,
|
||||
@@ -169,7 +169,7 @@ const nextConfig = {
|
||||
{
|
||||
key: "toDate",
|
||||
type: "query",
|
||||
value: "^([12]\\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01]))$",
|
||||
value: "^([12]\\d{3}-(0[1-9]|1[0-2])-([1-9]|[12]\\d|3[01]))$",
|
||||
},
|
||||
],
|
||||
permanent: false,
|
||||
|
||||
Reference in New Issue
Block a user