Skip to content

Commit 582fa9b

Browse files
committed
update redis ref
1 parent 5c52077 commit 582fa9b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/AspNetCoreRateLimit.Redis/AspNetCoreRateLimit.Redis.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
</ItemGroup>
2727

2828
<ItemGroup Condition="'$(Configuration)' == 'Release'">
29-
<PackageReference Include="AspNetCoreRateLimit" Version="4.0.1" />
29+
<PackageReference Include="AspNetCoreRateLimit" Version="4.0.2" />
3030
</ItemGroup>
3131

3232
<ItemGroup Condition="'$(Configuration)' == 'Debug' or '$(APPVEYOR)' == 'true'">

src/AspNetCoreRateLimit/Core/Extensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static bool IsRegexMatch(this string source, string value)
2727
}
2828
// if the regex is e.g. /api/values/ the path should be an exact match
2929
// if all paths below this should be included the regex should be /api/values/*
30-
if (value[^1] != '$')
30+
if (value[value.Length - 1] != '$')
3131
{
3232
value += '$';
3333
}

0 commit comments

Comments
 (0)