From 2a492e62a1ce9f8a8231498e6bfa03e09f861ff6 Mon Sep 17 00:00:00 2001 From: vincent Date: Sun, 19 Jul 2020 15:55:41 +0200 Subject: [PATCH] Fixes a bug where uppercase variants of keywords were not detected --- src/SauronEye/RegexSearch.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SauronEye/RegexSearch.cs b/src/SauronEye/RegexSearch.cs index 8a939c5..5d49070 100644 --- a/src/SauronEye/RegexSearch.cs +++ b/src/SauronEye/RegexSearch.cs @@ -18,7 +18,7 @@ public RegexSearch(List 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); } }