Skip to content

Commit

Permalink
Remove the extra quote checks from usage patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
z4kn4fein committed Jun 19, 2024
1 parent afa2cb7 commit e14c832
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ConfigCat.Cli.Services/Scan/ReferenceCollector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public async Task<FlagReferenceResult> CollectAsync(IEnumerable<FlagModel> flags
Samples = ProduceVariationSamples(f).Distinct().ToArray(),
UsagePatterns = usagePatterns
.Where(p => p.Contains(Constants.KeyPatternPlaceHolder))
.Select(p => new Regex(p.Replace(Constants.KeyPatternPlaceHolder, $"[`'\"]?({f.Key})[`'\"]?"), RegexOptions.Compiled))
.Select(p => new Regex(p.Replace(Constants.KeyPatternPlaceHolder, f.Key), RegexOptions.Compiled))
.ToArray()
}).ToArray();

Expand Down

0 comments on commit e14c832

Please sign in to comment.