Skip to content

Commit

Permalink
update redis ref
Browse files Browse the repository at this point in the history
  • Loading branch information
cristipufu committed Mar 12, 2022
1 parent 5c52077 commit 582fa9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</ItemGroup>

<ItemGroup Condition="'$(Configuration)' == 'Release'">
<PackageReference Include="AspNetCoreRateLimit" Version="4.0.1" />
<PackageReference Include="AspNetCoreRateLimit" Version="4.0.2" />
</ItemGroup>

<ItemGroup Condition="'$(Configuration)' == 'Debug' or '$(APPVEYOR)' == 'true'">
Expand Down
2 changes: 1 addition & 1 deletion src/AspNetCoreRateLimit/Core/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static bool IsRegexMatch(this string source, string value)
}
// if the regex is e.g. /api/values/ the path should be an exact match
// if all paths below this should be included the regex should be /api/values/*
if (value[^1] != '$')
if (value[value.Length - 1] != '$')
{
value += '$';
}
Expand Down

0 comments on commit 582fa9b

Please sign in to comment.