fixup the attributes

This commit is contained in:
honzapatCZ 2025-10-11 10:00:31 +02:00
parent 5141562618
commit 66ed9fcfe3
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ using System.Text.RegularExpressions;
namespace NejCommon.Validation;
public class IdentifierTextAttribute : RegexAttribute{
public IdentifierTextAttribute() : base("^[a-zA-Z0-9_-]*$","Aa_bb-123"){
public IdentifierTextAttribute() : base("^[a-zA-Z0-9_-]+$","Aa_bb-123"){
}
}

View File

@ -7,7 +7,7 @@ using System.Text.RegularExpressions;
namespace NejCommon.Validation;
public class StandardTextAttribute : RegexAttribute{
public StandardTextAttribute() : base("^[a-zA-Z0-9_-., ]*$","Aa_bb-123"){
public StandardTextAttribute() : base(@"^[a-zA-Z0-9\-\_,\. ]*$","Aa bb_123-145"){
}
}