diff options
Diffstat (limited to 'build2/test')
-rw-r--r-- | build2/test/script/builtin.cxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/build2/test/script/builtin.cxx b/build2/test/script/builtin.cxx index d52aee4..e912079 100644 --- a/build2/test/script/builtin.cxx +++ b/build2/test/script/builtin.cxx @@ -1337,12 +1337,13 @@ namespace build2 string s; while (getline (cin, s)) { - auto r (regex_replace_ex (s, - re, - subst->replacement, - subst->global - ? regex_constants::format_default - : regex_constants::format_first_only)); + auto r (regex_replace_search ( + s, + re, + subst->replacement, + subst->global + ? regex_constants::format_default + : regex_constants::format_first_only)); // Add newline regardless whether the source line is newline- // terminated or not (in accordance with POSIX). |