Skip to content

Commit

Permalink
Fix a bug in Regexp::ToString().
Browse files Browse the repository at this point in the history
Change-Id: Ib02554e460dbf45502bcab8798a0c1659c5ff83d
Reviewed-on: https://code-review.googlesource.com/c/re2/+/58630
Reviewed-by: Paul Wankadia <[email protected]>
  • Loading branch information
junyer committed May 21, 2021
1 parent c47b581 commit 4244cd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion re2/tostring.cc
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ int ToStringWalker::PostVisit(Regexp* re, int parent_arg, int pre_arg,
// There's no syntax accepted by the parser to generate
// this node (it is generated by RE2::Set) so make something
// up that is readable but won't compile.
t_->append("(?HaveMatch:%d)", re->match_id());
t_->append(StringPrintf("(?HaveMatch:%d)", re->match_id()));
break;
}

Expand Down

0 comments on commit 4244cd1

Please sign in to comment.