13 lines
423 B
C#
13 lines
423 B
C#
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Numerics;
|
|
using System.Text;
|
|
using System.Text.RegularExpressions;
|
|
|
|
namespace NejCommon.Validation;
|
|
|
|
public class StandardDescriptionAttribute : RegexAttribute{
|
|
public StandardDescriptionAttribute() : base(@"\A[\p{L}\p{M}\p{N}\p{P}\p{Zs}&+@€$%]+\z","Brown fox's - jumping over \"lazy\"(dogs).", "Only normal characters are allowed, no emjos, etc."){
|
|
|
|
}
|
|
} |