Skip to content

Commit 048f585

Browse files
author
Quoc Truong
committed
Add IgnoreCase for RuleSuppression regex
1 parent 68caca9 commit 048f585

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Engine/Generic/RuleSuppression.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ public static List<RuleSuppression> GetSuppressions(IEnumerable<AttributeAst> at
327327
}
328328

329329
// regex for wild card *
330-
Regex reg = new Regex(String.Format("^{0}$", Regex.Escape(ruleSupp.Target).Replace(@"\*", ".*")));
330+
Regex reg = new Regex(String.Format("^{0}$", Regex.Escape(ruleSupp.Target).Replace(@"\*", ".*")), RegexOptions.IgnoreCase);
331331
IEnumerable<Ast> targetAsts = null;
332332

333333
switch (ruleSupp.Scope.ToLower())

0 commit comments

Comments
 (0)