diff --git a/tests/by-util/test_dd.rs b/tests/by-util/test_dd.rs index b440d0f7e00..24aa6bfdf23 100644 --- a/tests/by-util/test_dd.rs +++ b/tests/by-util/test_dd.rs @@ -277,7 +277,7 @@ fn test_final_stats_unspec() { new_ucmd!() .run() .stderr_contains("0+0 records in\n0+0 records out\n0 bytes copied, ") - .stderr_matches(&Regex::new(r"\d\.\d+(e-\d\d)? s, ").unwrap()) + .stderr_matches(&Regex::new(r"\d(\.\d+)?(e-\d\d)? s, ").unwrap()) .stderr_contains("0.0 B/s") .success(); }