mirror of https://github.com/odrling/Aegisub
Fix case-insensitive regular expressions in the Select Lines dialog
Originally committed to SVN as r6560.
This commit is contained in:
parent
12511901a9
commit
29662749db
|
@ -105,7 +105,7 @@ static std::set<AssDialogue*> 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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue