Skip to content

Commit

Permalink
fix: uri scheme validation
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Nov 23, 2022
1 parent 8965bbe commit 53b400c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@
// Copyright (c) 2022 @Olivier Lefebvre
using FluentValidation;
using FluentValidation.Validators;
using System.Diagnostics.CodeAnalysis;
using System.Text.RegularExpressions;

namespace Aguacongas.TheIdServer.BlazorApp.Validators
{
public partial class UriValidator<T> : PropertyValidator<T, string>
{
[GeneratedRegex("^(http|https)://.+")]
[GeneratedRegex("^.+://.+")]
private static partial Regex _urlRegex();

public override string Name => $"UriValidatorOf{typeof(T).Name}";
Expand Down

0 comments on commit 53b400c

Please sign in to comment.