Skip to content

Commit

Permalink
change something for build
Browse files Browse the repository at this point in the history
  • Loading branch information
EngRajabi authored and raman-m committed Jul 22, 2023
1 parent 8d18bf3 commit 4b9516c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Ocelot/Infrastructure/ConfigAwarePlaceholders.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class ConfigAwarePlaceholders : IPlaceholders
{
private readonly IConfiguration _configuration;
private readonly IPlaceholders _placeholders;
private static readonly Regex _regex = new Regex(@"[{}]", RegexOptions.Compiled, TimeSpan.FromMilliseconds(100));
private static readonly Regex Regex = new Regex(@"[{}]", RegexOptions.Compiled, TimeSpan.FromMilliseconds(100));

public ConfigAwarePlaceholders(IConfiguration configuration, IPlaceholders placeholders)
{
Expand Down Expand Up @@ -49,7 +49,7 @@ public Response Remove(string key)
=> _placeholders.Remove(key);

private string CleanKey(string key)
=> _regex.Replace(key, string.Empty);
=> Regex.Replace(key, string.Empty);

private Response<string> GetFromConfig(string key)
{
Expand Down

0 comments on commit 4b9516c

Please sign in to comment.