From 2899d09003f3e56b31225c9761970ba3a7dea395 Mon Sep 17 00:00:00 2001 From: Harold Brenes Date: Wed, 11 Feb 2026 14:15:34 -0500 Subject: [PATCH] Use `strings.partition` instead of raw slicing Co-authored-by: Laytan --- core/testing/runner.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/testing/runner.odin b/core/testing/runner.odin index b3ac03483..020c40d0f 100644 --- a/core/testing/runner.odin +++ b/core/testing/runner.odin @@ -207,7 +207,7 @@ parse_cli_options :: proc(argv: []string, opts: ^Options, stdout, stderr: io.Wri for arg in argv { if strings.starts_with(arg, "-tests:") { - tests := arg[strings.index(arg, ":")+1:] + _, _, tests := strings.partition(arg, ":") if len(tests) < 1 { fmt.wprintln(stderr, "No test names specified for '-tests:'") os.exit(-1)