Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion PathfinderHonorManager/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ public static IHostBuilder CreateHostBuilder(string[] args) =>
})
.ConfigureLogging((hostingContext, logging) =>
{
logging.ClearProviders();
logging.AddConfiguration(hostingContext.Configuration.GetSection("Logging"));
logging.AddConsole();
logging.AddDebug();
Expand Down
3 changes: 2 additions & 1 deletion PathfinderHonorManager/Validators/ClubValidator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using Microsoft.EntityFrameworkCore;
using PathfinderHonorManager.DataAccess;
using PathfinderHonorManager.Dto.Incoming;
using System;
using System.Text.RegularExpressions;

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

RuleSet(
Expand Down