mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[Filter] Wasn't using the right straw
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user