Files
SocialPub/PrivaPub.ClientModels/Constants.cs
T

16 lines
617 B
C#
Raw Normal View History

2023-02-19 00:43:43 +01:00
namespace PrivaPub.ClientModels
2023-02-18 08:52:17 +01:00
{
public static class Constants
{
2023-02-19 00:43:43 +01:00
public const int MaxAvatarNameLength = 32;
public const int MaxAvatarBiographyLength = 5_000;
2023-02-18 08:52:17 +01:00
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}$";
2023-02-18 08:52:17 +01:00
}
}