commit | 4244cd1cb492fa1d10986ec67f862964c073f844 | [log] [tgz] |
---|---|---|
author | Paul Wankadia <junyer@google.com> | Fri May 21 04:24:17 2021 -0700 |
committer | Paul Wankadia <junyer@google.com> | Fri May 21 11:25:31 2021 +0000 |
tree | 22a47d031fde5f6e65efb2c3291f7b8726ff8b1a | |
parent | c47b5818a7cb7e282dadb1fc56f0d993a113294b [diff] |
Fix a bug in `Regexp::ToString()`. Change-Id: Ib02554e460dbf45502bcab8798a0c1659c5ff83d Reviewed-on: https://code-review.googlesource.com/c/re2/+/58630 Reviewed-by: Paul Wankadia <junyer@google.com>
diff --git a/re2/tostring.cc b/re2/tostring.cc index 4545a92..9c1c038 100644 --- a/re2/tostring.cc +++ b/re2/tostring.cc
@@ -291,7 +291,7 @@ // 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; }