mirror of
https://github.com/JuniorDark/RustyHearts-Launcher.git
synced 2026-05-07 05:21:44 -04:00
Version 1.2.0
This commit is contained in:
parent
9b3a0e00a2
commit
e74d93fab9
83 changed files with 110087 additions and 47507 deletions
19
RHLauncher.Helper/RegexPatterns.cs
Normal file
19
RHLauncher.Helper/RegexPatterns.cs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace RHLauncher.RHLauncher.Helper
|
||||
{
|
||||
public static partial class RegexPatterns
|
||||
{
|
||||
[GeneratedRegex(@"^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$")]
|
||||
public static partial Regex EmailRegex();
|
||||
|
||||
[GeneratedRegex("^(?=.*[a-z])[a-z0-9]+$")]
|
||||
public static partial Regex UsernameRegex();
|
||||
|
||||
[GeneratedRegex("^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d).+$")]
|
||||
public static partial Regex PWRegex();
|
||||
|
||||
[GeneratedRegex("^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[^\\da-zA-Z]).+$")]
|
||||
public static partial Regex StrongPWRegex();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue