regex fix

This commit is contained in:
2024-09-22 20:04:32 +03:00
parent eeb02dc5b6
commit 1ac754de03

View File

@@ -4,7 +4,7 @@ namespace ApplicationLayer;
public static class Constants public static class Constants
{ {
public readonly static Regex EnglishWordRegex = new("^[a-zA-Z]*$"); public readonly static Regex EnglishWordRegex = new("^[a-zA-Z']*$");
public readonly static Regex EnglishPhraseRegex = new(@"^[a-zA-Z №0-9;,\-_+=#*']*$"); public readonly static Regex EnglishPhraseRegex = new(@"^[a-zA-Z №0-9;,\-_+=#*']*$");