Skip to content

Commit 55b9b7d

Browse files
Merge pull request #635 from PathfinderHonorManager/develop
Minor tweaks
2 parents ae94a12 + 20356eb commit 55b9b7d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

PathfinderHonorManager/Program.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ public static IHostBuilder CreateHostBuilder(string[] args) =>
2222
})
2323
.ConfigureLogging((hostingContext, logging) =>
2424
{
25-
logging.ClearProviders();
2625
logging.AddConfiguration(hostingContext.Configuration.GetSection("Logging"));
2726
logging.AddConsole();
2827
logging.AddDebug();

PathfinderHonorManager/Validators/ClubValidator.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using Microsoft.EntityFrameworkCore;
33
using PathfinderHonorManager.DataAccess;
44
using PathfinderHonorManager.Dto.Incoming;
5+
using System;
56
using System.Text.RegularExpressions;
67

78
namespace PathfinderHonorManager.Validators
@@ -26,7 +27,7 @@ private void SetUpValidation()
2627
RuleFor(c => c.ClubCode)
2728
.NotEmpty()
2829
.Length(4, 20)
29-
.Matches(new Regex("^[A-Z0-9]+$"))
30+
.Matches(new Regex("^[A-Z0-9]+$", RegexOptions.None, TimeSpan.FromMilliseconds(100)))
3031
.WithMessage("Club code must be between 4 and 20 characters and contain only uppercase letters and numbers.");
3132

3233
RuleSet(

0 commit comments

Comments
 (0)