bit more lenient with normal text

This commit is contained in:
honzapatCZ 2026-06-30 14:14:03 +02:00
parent 3b9ad8a364
commit d38e9bc0b4

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-145"){
public StandardTextAttribute() : base(@"^[\p{L}\p{N}\-_,. ]*$","Příliš žlouťoučký kůň úpěl 2 ďábelské ódy"){
}
}