19 lines
		
	
	
		
			742 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			742 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| using System.Text.RegularExpressions;
 | |
| using Microsoft.AspNetCore.Components;
 | |
| 
 | |
| namespace BlazorWebAssemblyVisaApiClient;
 | |
| 
 | |
| public static class Constants
 | |
| {
 | |
|     public readonly static Regex EnglishWordRegex = new("^[a-zA-Z]*$");
 | |
| 
 | |
|     public readonly static Regex EnglishPhraseRegex = new(@"^[a-z A-Z№0-9?><;,{}[\]\-_+=!@#$%\^&*|']*$");
 | |
| 
 | |
|     public readonly static Regex PhoneNumRegex = new(@"^[\+]?[(]?[0-9]{3}[)]?[-\s\.]?[0-9]{3}[-\s\.]?[0-9]{4,6}$");
 | |
| 
 | |
|     public readonly static MarkupString RequiredFieldMarkup = (MarkupString)"<span style=\"color: red;\">*</span>";
 | |
| 
 | |
|     public const string ApplicantRole = "Applicant";
 | |
|     public const string ApprovingAuthorityRole = "ApprovingAuthority";
 | |
|     public const string AdminRole = "Admin";
 | |
| } |