From 3bf8f344dbd82603699051216cae92d2261c886f Mon Sep 17 00:00:00 2001 From: depial <91621102+depial@users.noreply.github.com> Date: Sun, 15 Feb 2026 10:31:39 -0500 Subject: [PATCH] Update tojson.jl This addresses the [Test Tunner CI](https://github.com/exercism/julia/actions/runs/22037583331/job/63673435034) failing in `exercism/julia`. Specifically, the test name `0-element` from `old-emoji-times` was throwing an error due to an overly generic regex matching. The new matching criteria in the condition more closely matches the pattern of the regex in the if clause. This results in concept testset names having to take the form "n. testname" including both the `.` and the white space after the number `n`. --- src/tojson.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tojson.jl b/src/tojson.jl index d11d12f..d578e3c 100644 --- a/src/tojson.jl +++ b/src/tojson.jl @@ -152,7 +152,7 @@ function tojson(output::String, ts::ReportingTestSet) num_results = count(x -> x isa Test.Result, testset.results) - task_id, name = startswith(name, r"\d+") ? match(r"^(\d+)\. +(.*)", name).captures : [nothing, strip(name)] + task_id, name = startswith(name, r"\d+\. +") ? match(r"^(\d+)\. +(.*)", name).captures : [nothing, strip(name)] task_id = isnothing(task_id) ? nothing : parse(Int, task_id) function test_name(result, idx)