diff --git a/SabreTools.Helper/Dats/Filter.cs b/SabreTools.Helper/Dats/Filter.cs index 04a6420f..e9f46ded 100644 --- a/SabreTools.Helper/Dats/Filter.cs +++ b/SabreTools.Helper/Dats/Filter.cs @@ -481,7 +481,7 @@ namespace SabreTools.Helper.Dats string regexStraw = (!regex ? "^" + (straw.StartsWith("*") ? ".*" : "") + Regex.Escape(straw.Trim('*')) + (straw.EndsWith("*") ? ".*" : "") + "$" : straw); // Check if a match is found with the regex - found |= Regex.IsMatch(needle, straw, RegexOptions.IgnoreCase); + found |= Regex.IsMatch(needle, regexStraw, RegexOptions.IgnoreCase); } }