Auto-pruning of syncshell, added metrics for pruning, return of count of users in fullgroupdto.

This commit is contained in:
cake
2025-12-05 22:01:48 +01:00
parent 63211b2e8b
commit 091bfbbc29
24 changed files with 1620 additions and 42 deletions

View File

@@ -94,7 +94,7 @@ public partial class LightlessWizardModule
bool canAddVanityId = !db.Users.Any(u => u.UID == modal.DesiredVanityUID || u.Alias == modal.DesiredVanityUID);
var forbiddenWords = new[] { "null", "nil" };
Regex rgx = new(@"^[_\-a-zA-Z0-9]{3,15}$", RegexOptions.ECMAScript);
Regex rgx = new(@"^[_\-a-zA-Z0-9\?]{3,15}$", RegexOptions.ECMAScript);
if (!rgx.Match(desiredVanityUid).Success)
{
eb.WithColor(Color.Red);