@@ -4,7 +4,8 @@ const NO_UNICODE_REGEX = /^[\x20-\x7E]*$/;
44export const NO_UNICODE_ERROR = "String cannot contain special characters or Unicode symbols" ;
55
66const ALLOWED_USERNAME_CHARACTERS_REGEX = / ^ [ a - z A - Z 0 - 9 . _ - ] + $ / ;
7- export const ALLOWED_USERNAME_CHARACTERS_ERROR = " can only contain letters, numbers, dots, hyphens, and underscores" ;
7+ export const ALLOWED_USERNAME_CHARACTERS_ERROR =
8+ "Username can only contain letters, numbers, dots, hyphens, and underscores" ;
89
910const ALLOWED_REGION_CHARACTERS_REGEX = / ^ [ a - z A - Z 0 - 9 _ - ] + $ / ;
1011export const ALLOWED_REGION_CHARACTERS_ERROR = "Region can only contain letters, numbers, hyphens, and underscores" ;
@@ -37,7 +38,7 @@ export const AtlasArgs = {
3738 . string ( )
3839 . min ( 1 , "Cluster name is required" )
3940 . max ( 64 , "Cluster name must be 64 characters or less" )
40- . regex ( ALLOWED_CLUSTER_NAME_CHARACTERS_REGEX , "Cluster name " + ALLOWED_CLUSTER_NAME_CHARACTERS_ERROR ) ,
41+ . regex ( ALLOWED_CLUSTER_NAME_CHARACTERS_REGEX , ALLOWED_CLUSTER_NAME_CHARACTERS_ERROR ) ,
4142
4243 projectName : ( ) : z . ZodString =>
4344 z
@@ -51,7 +52,7 @@ export const AtlasArgs = {
5152 . string ( )
5253 . min ( 1 , "Username is required" )
5354 . max ( 100 , "Username must be 100 characters or less" )
54- . regex ( ALLOWED_USERNAME_CHARACTERS_REGEX , "Username " + ALLOWED_USERNAME_CHARACTERS_ERROR ) ,
55+ . regex ( ALLOWED_USERNAME_CHARACTERS_REGEX , ALLOWED_USERNAME_CHARACTERS_ERROR ) ,
5556
5657 ipAddress : ( ) : z . ZodString => z . string ( ) . ip ( { version : "v4" } ) ,
5758
0 commit comments