This commit is contained in:
WangZengrui 2021-10-17 00:33:57 +08:00
parent 1541593b2f
commit bd2c016cf3

View File

@ -142,7 +142,7 @@ struct ReplaceRegexpImpl
}
}
if (replace_one || !is_first_match)
if (replace_one || (!is_first_match && match.length() == 0))
can_finish_current_string = true;
is_first_match = false;
}