Skip to content

Commit

Permalink
Update ReplaceRegexpImpl.h
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-milovidov committed Mar 11, 2022
1 parent c66fb7c commit e4e058d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Functions/ReplaceRegexpImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ struct ReplaceRegexpImpl
if (match.length() == 0)
{
/// Step one character to avoid infinite loop
if (++match_pos >= static_cast<size_t>(input.length()))
++match_pos;
if (match_pos >= static_cast<size_t>(input.length()))
can_finish_current_string = true;
}
}
Expand Down

0 comments on commit e4e058d

Please sign in to comment.