forked from mia/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
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ static std::set<AssDialogue*> process(wxString match_text, bool match_case, int
|
||||||
int flags = wxRE_ADVANCED;
|
int flags = wxRE_ADVANCED;
|
||||||
if (!match_case)
|
if (!match_case)
|
||||||
flags |= wxRE_ICASE;
|
flags |= wxRE_ICASE;
|
||||||
if (!re.Compile(match_text))
|
if (!re.Compile(match_text, flags))
|
||||||
throw BadRegex("Syntax error in regular expression", 0);
|
throw BadRegex("Syntax error in regular expression", 0);
|
||||||
match_case = false;
|
match_case = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue