mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-02 01:33:04 +00:00
Fix a bug in regex wrapper
This commit is contained in:
1 file changed
+1
-1
@@ -537,7 +537,7 @@ std::string regReplace(std::string src, std::string match, std::string rep)
|
||||
if(rep.find("$") != rep.npos)
|
||||
rep = replace_all_distinct(rep, "$", "\\");
|
||||
pcrecpp::RE reg(match);
|
||||
if(reg.Replace(rep, &result))
|
||||
if(reg.GlobalReplace(rep, &result))
|
||||
return result;
|
||||
else
|
||||
return src;
|
||||
|
||||
Reference in new issue
Block a user