fixup the attributes
This commit is contained in:
parent
5141562618
commit
66ed9fcfe3
|
|
@ -7,7 +7,7 @@ using System.Text.RegularExpressions;
|
||||||
namespace NejCommon.Validation;
|
namespace NejCommon.Validation;
|
||||||
|
|
||||||
public class IdentifierTextAttribute : RegexAttribute{
|
public class IdentifierTextAttribute : RegexAttribute{
|
||||||
public IdentifierTextAttribute() : base("^[a-zA-Z0-9_-]*$","Aa_bb-123"){
|
public IdentifierTextAttribute() : base("^[a-zA-Z0-9_-]+$","Aa_bb-123"){
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -7,7 +7,7 @@ using System.Text.RegularExpressions;
|
||||||
namespace NejCommon.Validation;
|
namespace NejCommon.Validation;
|
||||||
|
|
||||||
public class StandardTextAttribute : RegexAttribute{
|
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"){
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user