diff --git a/aegisub/src/dialog_selection.cpp b/aegisub/src/dialog_selection.cpp index 94c325798..934653557 100644 --- a/aegisub/src/dialog_selection.cpp +++ b/aegisub/src/dialog_selection.cpp @@ -105,7 +105,7 @@ static std::set process(wxString match_text, bool match_case, int int flags = wxRE_ADVANCED; if (!match_case) flags |= wxRE_ICASE; - if (!re.Compile(match_text)) + if (!re.Compile(match_text, flags)) throw BadRegex("Syntax error in regular expression", 0); match_case = false; }