mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-12 21:37:22 +01:00
fix regex
This commit is contained in:
parent
de094026d6
commit
fee84aa1ff
1 changed files with 1 additions and 1 deletions
|
|
@ -154,7 +154,7 @@ public partial class MareWizardModule
|
|||
using var db = GetDbContext();
|
||||
bool canAddVanityId = !db.Groups.Any(u => u.GID == modal.DesiredVanityGID || u.Alias == modal.DesiredVanityGID);
|
||||
|
||||
Regex rgx = new(@"^[_\-a-zA-Z0-9]{5,15}$", RegexOptions.ECMAScript);
|
||||
Regex rgx = new(@"^[_\-a-zA-Z0-9]{5,20}$", RegexOptions.ECMAScript);
|
||||
if (!rgx.Match(desiredVanityUid).Success)
|
||||
{
|
||||
eb.WithColor(Color.Red);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue