Skip to content

Commit 53b400c

Browse files
author
github-actions
committed
fix: uri scheme validation
1 parent 8965bbe commit 53b400c

File tree

1 file changed

+1
-2
lines changed
  • src/BlazorApp/Aguacongas.TheIdServer.BlazorApp.Infrastructure/Validators

1 file changed

+1
-2
lines changed

src/BlazorApp/Aguacongas.TheIdServer.BlazorApp.Infrastructure/Validators/UriValidator.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@
22
// Copyright (c) 2022 @Olivier Lefebvre
33
using FluentValidation;
44
using FluentValidation.Validators;
5-
using System.Diagnostics.CodeAnalysis;
65
using System.Text.RegularExpressions;
76

87
namespace Aguacongas.TheIdServer.BlazorApp.Validators
98
{
109
public partial class UriValidator<T> : PropertyValidator<T, string>
1110
{
12-
[GeneratedRegex("^(http|https)://.+")]
11+
[GeneratedRegex("^.+://.+")]
1312
private static partial Regex _urlRegex();
1413

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

0 commit comments

Comments
 (0)