namespace PrivaPub.ClientModels { public static class Constants { public const int MaxAvatarNameLength = 32; public const int MaxAvatarBiographyLength = 5_000; public const int MinPasswordLength = 7; public const int MaxPasswordLength = 1025; public const int GroupInvitationLength = 64; public const string PasswordRegex = @"^(?=.*)(?=.*[a-z])(?=.*[A-Z])(?!.*\s).*$"; public const string UserNameRegex = "^[a-z0-9_]+$"; // a custom emoji's shortcode: Mastodon's rule (letters, digits and underscores, two at least), 64 at most public const string ShortcodeRegex = "^[a-zA-Z0-9_]{2,64}$"; } }