mirror of
https://github.com/celisej567/abaddon.git
synced 2026-09-13 20:18:50 +03:00
slap a bunch of shit everywhere until the crashing stops
This commit is contained in:
6
util.hpp
6
util.hpp
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user