From 1ac754de030743b03307526802d67258ed9eef32 Mon Sep 17 00:00:00 2001 From: prtsie Date: Sun, 22 Sep 2024 20:04:32 +0300 Subject: [PATCH] regex fix --- SchengenVisaApi/ApplicationLayer/Constants.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SchengenVisaApi/ApplicationLayer/Constants.cs b/SchengenVisaApi/ApplicationLayer/Constants.cs index aa8dc09..0ac909b 100644 --- a/SchengenVisaApi/ApplicationLayer/Constants.cs +++ b/SchengenVisaApi/ApplicationLayer/Constants.cs @@ -4,9 +4,9 @@ namespace ApplicationLayer; 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 PhoneNumRegex = new(@"^[\+]?[(]?[0-9]{3}[)]?[-\s\.]?[0-9]{3}[-\s\.]?[0-9]{4,6}$"); -} \ No newline at end of file +}