From 6a8b6c010cb1458b8b9cea5d1159c69bc5ff5fa9 Mon Sep 17 00:00:00 2001 From: yuyi Date: Thu, 29 Dec 2022 23:55:57 +0800 Subject: [PATCH] repl: minor cleanup in runner.v (#16804) --- vlib/v/tests/repl/runner/runner.v | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/vlib/v/tests/repl/runner/runner.v b/vlib/v/tests/repl/runner/runner.v index 49ee3507f6..18298e1ccc 100644 --- a/vlib/v/tests/repl/runner/runner.v +++ b/vlib/v/tests/repl/runner/runner.v @@ -58,9 +58,8 @@ pub fn run_repl_file(wd string, vexec string, file string) !string { os.rm(input_temporary_filename)! return error('Could not execute: ${rcmd}') } - result := r.output.replace('\r', '').replace('>>> ', '').replace('>>>', '').replace('... ', - '').replace(wd + os.path_separator, '').replace(vexec_folder, '').replace('\\', - '/').trim_right('\n\r') + result := r.output.replace_each(['\r', '', '>>> ', '', '>>>', '', '... ', '', + wd + os.path_separator, '', vexec_folder, '', '\\', '/']).trim_right('\n\r') $if windows { dump(rcmd) dump(r.output)