public static Regex FilterToRegex(string rawFilter, bool compiled = false) { if (rawFilter == null) return null; var escaped = EscapeFilter(rawFilter); var options = RegexOptions.IgnoreCase; if (compiled) options |= RegexOptions.Compiled; return new Regex(escaped, options); }
private void TracebackFilter_FilterChanged(object sender, EventArgs e) { var filter = MainWindow.FilterToRegex(TracebackFilter.Filter); DeltaHistogram.FunctionFilter = DeltaList.FunctionFilter = FunctionFilter = filter; Start(RefreshDeltas()); }