Skip to content

Commit a77b8e8

Browse files
committed
Client: Removed dependency to ImageWizard.Core
1 parent 0b34ee2 commit a77b8e8

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

src/ImageWizard.Client/ImageWizard.Client.csproj

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,11 @@
2828
<ItemGroup>
2929
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
3030
</ItemGroup>
31-
31+
3232
<ItemGroup>
3333
<FrameworkReference Include="Microsoft.AspNetCore.App" />
3434
</ItemGroup>
35-
36-
<ItemGroup>
37-
<ProjectReference Include="..\ImageWizard.Core\ImageWizard.Core.csproj" />
35+
<ItemGroup>
3836
<ProjectReference Include="..\ImageWizard.Utils\ImageWizard.Utils.csproj" />
3937
</ItemGroup>
4038

src/ImageWizard.Core/Middlewares/ImageWizardMiddleware.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,10 @@ public async Task InvokeAsync(HttpContext context)
110110
string url_path = match.Groups["path"].Value;
111111
string url_loaderSource = match.Groups["loaderSource"].Value;
112112
string url_loaderType = match.Groups["loaderType"].Value;
113-
IList<string> url_filters = match.Groups["filter"].Captures.OfType<Capture>()
114-
.Select(x => x.Value)
115-
.Select(x => x[0..^1]) //remove "/"
116-
.ToList();
113+
IList<string> url_filters = match.Groups["filter"].Captures
114+
.Select(x => x.Value)
115+
.Select(x => x[0..^1]) //remove "/"
116+
.ToList();
117117

118118
//unsafe url?
119119
if (Options.AllowUnsafeUrl && url_signature == "unsafe")

0 commit comments

Comments
 (0)