Skip to content

Commit

Permalink
Fix #370 (#371)
Browse files Browse the repository at this point in the history
  • Loading branch information
gfs committed May 19, 2021
1 parent 405c4f8 commit c4c02e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RulesEngine/Ruleset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ private static void SanitizePatternRegex(SearchPattern pattern)
if (pattern.PatternType == PatternType.RegexWord)
{
pattern.PatternType = PatternType.Regex;
pattern.Pattern = string.Format(CultureInfo.InvariantCulture, @"\b{0}\b", pattern.Pattern);
pattern.Pattern = string.Format(CultureInfo.InvariantCulture, @"\b({0})\b", pattern.Pattern);
}
else if (pattern.PatternType == PatternType.String)
{
Expand Down

0 comments on commit c4c02e2

Please sign in to comment.