Skip to content

Commit ac4221b

Browse files
committed
global-replace
1 parent 315b0ac commit ac4221b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

toolchain/testing/file_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ auto ToolchainFileTest::DoExtraCheckReplacements(std::string& check_line) const
329329
// instruction edits including adding/removing singleton instructions.
330330
static RE2 inst_re(
331331
R"(((?:import_ref [^,]*, |<unexpected>\.)inst)[0-9A-F]+)");
332-
RE2::Replace(&check_line, inst_re, R"(\1{{[0-9A-F]+}})");
332+
RE2::GlobalReplace(&check_line, inst_re, R"(\1{{[0-9A-F]+}})");
333333

334334
// Reduce location sensitivity in imports referring to `Core`; this is
335335
// brittle for small edits, including comment changes.

0 commit comments

Comments
 (0)