Skip to content

Commit f9489a6

Browse files
committed
Another fix
1 parent cccf56a commit f9489a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utils/replace_all.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ namespace detail {
3030
}
3131

3232
void replace_all_template(std::string& str, const std::pair<std::regex, string_view>& rule) {
33-
const auto& [re, replacement] = rule;
33+
const auto& re = rule.first;
34+
const auto& replacement = rule.second;
3435
std::smatch match;
3536
std::size_t cursor = 0;
3637
while(std::regex_search(str.cbegin() + cursor, str.cend(), match, re)) {

0 commit comments

Comments
 (0)