Skip to content

Commit

Permalink
Fixes a bug where uppercase variants of keywords were not detected
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent committed Jul 19, 2020
1 parent 769c3b7 commit 2a492e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SauronEye/RegexSearch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public RegexSearch(List<string> keywords) {

private void constructRegexes() {
foreach (string keyword in Keywords) {
Regex regex = new Regex(keyword, RegexOptions.Singleline | RegexOptions.Compiled);
Regex regex = new Regex(keyword.ToLower(), RegexOptions.Singleline | RegexOptions.Compiled);
Regexes.Add(regex);
}
}
Expand Down

0 comments on commit 2a492e6

Please sign in to comment.