slap a bunch of shit everywhere until the crashing stops

This commit is contained in:
ouwou
2020-10-05 21:37:07 -04:00
parent cfcb0d4e66
commit 0cdaea97dd
8 changed files with 52 additions and 18 deletions

View File

@@ -214,8 +214,10 @@ std::string RegexReplaceMany(std::string str, std::string regexstr, F func) {
offset += diff;
std::get<0>(*(it + 1)) -= offset;
std::get<1>(*(it + 1)) -= offset;
if (it + 1 != matches.end()) {
std::get<0>(*(it + 1)) -= offset;
std::get<1>(*(it + 1)) -= offset;
}
}
return str;