plugin/pcre: Replace now correctly works with \n

git-svn-id: svn://ultimatepp.org/upp/trunk@11799 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2018-02-24 17:19:43 +00:00
parent 0f93a62163
commit ff5bb63fed

View file

@ -197,13 +197,13 @@ bool RegExp::ReplacePos(String& t, int p, int q, const String& r)
}
Vector<String> RegExp::Make_rv(const String& r)
{
RegExp reg("\\((.*?)\\)");
{
RegExp reg("\\(((\r|\n|.)*?)\\)");
Vector<String> rv;
while(reg.GlobalMatch(r)){
rv.Add(reg.GetString(0));
rv.Add(reg.GetString(0));
}
return rv;