Remove unused copmiled directionary (#506)
This commit is contained in:
Родитель
4a54711f51
Коммит
13a571de1a
|
@ -12,9 +12,6 @@ namespace Microsoft.ApplicationInspector.RulesEngine;
|
|||
/// </summary>
|
||||
public class SearchPattern
|
||||
{
|
||||
private readonly Dictionary<RegexOptions, Regex> _compiled = new();
|
||||
private string? _pattern;
|
||||
|
||||
[JsonProperty(PropertyName = "confidence")]
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public Confidence Confidence { get; set; }
|
||||
|
@ -23,15 +20,7 @@ public class SearchPattern
|
|||
public string[]? Modifiers { get; set; }
|
||||
|
||||
[JsonProperty(PropertyName = "pattern")]
|
||||
public string? Pattern
|
||||
{
|
||||
get => _pattern;
|
||||
set
|
||||
{
|
||||
_compiled.Clear();
|
||||
_pattern = value;
|
||||
}
|
||||
}
|
||||
public string? Pattern { get; set; }
|
||||
|
||||
[JsonProperty(PropertyName = "type")]
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
|
|
|
@ -104,7 +104,7 @@ public class TestVerifyRulesCmd
|
|||
""i""
|
||||
],
|
||||
""pattern"": ""windows"",
|
||||
""type"": ""String"",
|
||||
""type"": ""String""
|
||||
}
|
||||
],
|
||||
""must-match"" : [ ""windows 2000""]
|
||||
|
|
Загрузка…
Ссылка в новой задаче