First major version of the project
This finishes the first iteration of the project. Reports have been tested and are functional in terms of writing out and outputting some form of text. There are still a few bugs here and there that are found but ultimately this commit is so testing can begin. Since the changes are too large to individually summarize, here is the generalization: Reports have been integrated into the admin mode. They write out to text files rather than export to say email or a printer as it was not to be considered for this version. The files are appended too and exist in the debug director of the project. I made this easier to find by outputting where the files were output to after running the report. Other changes included some bug fixes, optimizations, and a few bit of automatic cleanup. This may lead to sylistic inconsistencies. Documentation will come in a later commit.
This commit is contained in:
@@ -11,10 +11,10 @@ namespace Ophelias.Expressions
|
||||
{
|
||||
internal static class Expressions
|
||||
{
|
||||
internal static Regex CardRx = new Regex(@"^[0-9]{16}$", RegexOptions.Compiled);
|
||||
internal static Regex ExpriationRx = new Regex(@"^(0?[1-9]|1[012])/2[0-9]{1}$", RegexOptions.Compiled);
|
||||
internal static Regex CCVRx = new Regex(@"^[0-9]{3}$", RegexOptions.Compiled);
|
||||
internal static Regex MoneyRx = new Regex(@"^(\d+\.\d{2}|\d+)$", RegexOptions.Compiled);
|
||||
internal static Regex CardRx = new(@"^[0-9]{16}$", RegexOptions.Compiled);
|
||||
internal static Regex ExpriationRx = new(@"^(0?[1-9]|1[012])/2[0-9]{1}$", RegexOptions.Compiled);
|
||||
internal static Regex CCVRx = new(@"^[0-9]{3}$", RegexOptions.Compiled);
|
||||
internal static Regex MoneyRx = new(@"^(\d+\.\d{2}|\d+)$", RegexOptions.Compiled);
|
||||
}
|
||||
internal static class Validation
|
||||
{
|
||||
@@ -41,7 +41,7 @@ namespace Ophelias.Expressions
|
||||
}
|
||||
internal static bool ValidateEmail(string email)
|
||||
{
|
||||
EmailAddressAttribute EmailChecker = new EmailAddressAttribute();
|
||||
EmailAddressAttribute EmailChecker = new();
|
||||
return EmailChecker.IsValid(email);
|
||||
}
|
||||
internal static bool ValidateCCV(string CCV)
|
||||
|
||||
Reference in New Issue
Block a user